Eclipse CDT
Pre-release 3.0

org.eclipse.cdt.core.dom.ast
Interface IASTInitializerList

All Superinterfaces:
IASTInitializer, IASTNode

public interface IASTInitializerList
extends IASTInitializer

This is an an initializer that is a list of initializers.


Field Summary
static ASTNodeProperty NESTED_INITIALIZER
          NESTED_INITIALIZER describes the relationship between an IASTInitializerList and its sub-IASTInitializers.
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTInitializer
EMPTY_INITIALIZER_ARRAY
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
EMPTY_NODE_ARRAY
 
Method Summary
 void addInitializer(IASTInitializer initializer)
          Add an initializer to the initializer list.
 IASTInitializerList copy()
          Returns a mutable copy of the tree rooted at this node.
 IASTInitializer[] getInitializers()
          Get the list of initializers.
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IASTNode
accept, contains, getChildren, getContainingFilename, getFileLocation, getLeadingSyntax, getNodeLocations, getParent, getPropertyInParent, getRawSignature, getSyntax, getTrailingSyntax, getTranslationUnit, isActive, isFrozen, isPartOfTranslationUnitFile, setParent, setPropertyInParent
 

Field Detail

NESTED_INITIALIZER

static final ASTNodeProperty NESTED_INITIALIZER
NESTED_INITIALIZER describes the relationship between an IASTInitializerList and its sub-IASTInitializers.

Method Detail

getInitializers

IASTInitializer[] getInitializers()
Get the list of initializers.

Returns:
IASTInitializer[] array of initializers

addInitializer

void addInitializer(IASTInitializer initializer)
Add an initializer to the initializer list.

Parameters:
initializer - IASTInitializer

copy

IASTInitializerList copy()
Description copied from interface: IASTNode
Returns a mutable copy of the tree rooted at this node. The following postconditions hold: copy.getParent() == null copy.getPropertyInParent() == null copy.isFrozen() == false Preprocessor nodes do not currently support being copied. Implicit name nodes are not copied, instead they can be regenerated if required.

Specified by:
copy in interface IASTInitializer
Specified by:
copy in interface IASTNode
Since:
5.1

Eclipse CDT
Pre-release 3.0

Copyright (c) IBM Corp. and others 2004. All Rights Reserved.