1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-06 17:26:01 +02:00

Cosmetics

Change-Id: Idabd9e2d0c587618c2a68363fabdd0692ee8f847
This commit is contained in:
Sergey Prigogin 2016-07-31 22:13:13 -07:00
parent 072e568395
commit 80b05f860a
2 changed files with 15 additions and 21 deletions

View file

@ -6,7 +6,7 @@
* http://www.eclipse.org/legal/epl-v10.html * http://www.eclipse.org/legal/epl-v10.html
* *
* Contributors: * Contributors:
* John Camelon (IBM) - Initial API and implementation * John Camelon (IBM) - Initial API and implementation
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.core.dom.ast.cpp; package org.eclipse.cdt.core.dom.ast.cpp;
@ -21,45 +21,41 @@ import org.eclipse.cdt.core.dom.ast.IASTDeclarationListOwner;
* @noimplement This interface is not intended to be implemented by clients. * @noimplement This interface is not intended to be implemented by clients.
*/ */
public interface ICPPASTLinkageSpecification extends IASTDeclaration, IASTDeclarationListOwner { public interface ICPPASTLinkageSpecification extends IASTDeclaration, IASTDeclarationListOwner {
/**
* {@code OWNED_DECLARATION} is the owned declaration role for linkages.
*/
public static final ASTNodeProperty OWNED_DECLARATION = new ASTNodeProperty(
"ICPPASTLinkageSpecification.OWNED_DECLARATION - Owned Declaration role for linkages"); //$NON-NLS-1$
/** /**
* Get the "literal" that represents the linkage. * Returns the "literal" that represents the linkage.
* *
* @return String * @return String
*/ */
public String getLiteral(); public String getLiteral();
/** /**
* Set the "literal" that represents the linkage. * Sets the "literal" that represents the linkage.
* *
* @param value * @param value the "literal" that represents the linkage
* String
*/ */
public void setLiteral(String value); public void setLiteral(String value);
/** /**
* <code>OWNED_DECLARATION</code> is the owned declaration role for * Returns all of the declarations.
* linkages.
*/
public static final ASTNodeProperty OWNED_DECLARATION = new ASTNodeProperty(
"ICPPASTLinkageSpecification.OWNED_DECLARATION - Owned Declaration role for linkages"); //$NON-NLS-1$
/**
* Get all of the declarations.
* *
* @return <code>IASTDeclaration[] </code> * @return {@code IASTDeclaration[]}
*/ */
public IASTDeclaration[] getDeclarations(); public IASTDeclaration[] getDeclarations();
/** /**
* Add another declaration to the linkage. * Adds another declaration to the linkage.
* *
* @param declaration * @param declaration the declaration to add
* <code>IASTDeclaration</code>
*/ */
@Override @Override
public void addDeclaration(IASTDeclaration declaration); public void addDeclaration(IASTDeclaration declaration);
/** /**
* @since 5.1 * @since 5.1
*/ */

View file

@ -31,9 +31,7 @@ public class ContainerNode extends ASTNode {
private final ArrayList<IASTNode> nodes = new ArrayList<IASTNode>(); private final ArrayList<IASTNode> nodes = new ArrayList<IASTNode>();
public ContainerNode(IASTNode... nodes) { public ContainerNode(IASTNode... nodes) {
for (IASTNode each : nodes) { Collections.addAll(this.nodes, nodes);
addNode(each);
}
} }
@Override @Override