public interface INodeFactory
node.isFrozen() == false
.
None of the factory methods should return null.IASTAlignmentSpecifier newAlignmentSpecifier(IASTExpression expression)
IASTAlignmentSpecifier newAlignmentSpecifier(IASTTypeId typeId)
IASTArrayDeclarator newArrayDeclarator(IASTName name)
IASTArrayModifier newArrayModifier(IASTExpression expr)
IASTArraySubscriptExpression newArraySubscriptExpression(IASTExpression arrayExpr, IASTExpression subscript)
IASTASMDeclaration newASMDeclaration(java.lang.String assembly)
IASTAttribute newAttribute(char[] name, IASTToken argumentClause)
IASTBinaryExpression newBinaryExpression(int op, IASTExpression expr1, IASTExpression expr2)
IASTBreakStatement newBreakStatement()
IASTCaseStatement newCaseStatement(IASTExpression expr)
IASTCastExpression newCastExpression(int operator, IASTTypeId typeId, IASTExpression operand)
IASTCompositeTypeSpecifier newCompositeTypeSpecifier(int key, IASTName name)
IASTCompoundStatement newCompoundStatement()
IASTConditionalExpression newConditionalExpession(IASTExpression condition, IASTExpression positive, IASTExpression negative)
IASTContinueStatement newContinueStatement()
IASTDeclarationStatement newDeclarationStatement(IASTDeclaration declaration)
IASTDeclarator newDeclarator(IASTName name)
IASTDefaultStatement newDefaultStatement()
IASTDoStatement newDoStatement(IASTStatement body, IASTExpression condition)
IASTElaboratedTypeSpecifier newElaboratedTypeSpecifier(int kind, IASTName name)
IASTEnumerationSpecifier newEnumerationSpecifier(IASTName name)
IASTEnumerationSpecifier.IASTEnumerator newEnumerator(IASTName name, IASTExpression value)
IASTEqualsInitializer newEqualsInitializer(IASTInitializerClause initClause)
IASTExpressionList newExpressionList()
IASTExpressionStatement newExpressionStatement(IASTExpression expression)
IASTFieldDeclarator newFieldDeclarator(IASTName name, IASTExpression bitFieldSize)
IASTFieldReference newFieldReference(IASTName name, IASTExpression owner)
IASTForStatement newForStatement(IASTStatement init, IASTExpression condition, IASTExpression iterationExpression, IASTStatement body)
IASTFunctionCallExpression newFunctionCallExpression(IASTExpression idExpr, IASTInitializerClause[] arguments)
IASTStandardFunctionDeclarator newFunctionDeclarator(IASTName name)
IASTFunctionDefinition newFunctionDefinition(IASTDeclSpecifier declSpecifier, IASTFunctionDeclarator declarator, IASTStatement bodyStatement)
IGCCASTAttributeList newGCCAttributeList()
org.eclipse.cdt.core.dom.ast.ms.IMSASTDeclspecList newMSDeclspecList()
IGNUASTCompoundStatementExpression newGNUCompoundStatementExpression(IASTCompoundStatement compoundStatement)
IASTGotoStatement newGotoStatement(IASTName name)
IASTStatement newGotoStatement(IASTExpression expression)
IASTIdExpression newIdExpression(IASTName name)
IASTIfStatement newIfStatement(IASTExpression condition, IASTStatement then, IASTStatement elseClause)
org.eclipse.cdt.internal.core.dom.parser.IASTInactiveCompletionName newInactiveCompletionName(char[] name, IASTTranslationUnit ast)
IASTInitializerList newInitializerList()
IASTLabelStatement newLabelStatement(IASTName name, IASTStatement nestedStatement)
IASTLiteralExpression newLiteralExpression(int kind, java.lang.String rep)
IASTName newName()
IASTName newName(char[] name)
IASTName newName(java.lang.String name)
IASTNullStatement newNullStatement()
IASTParameterDeclaration newParameterDeclaration(IASTDeclSpecifier declSpec, IASTDeclarator declarator)
IASTPointer newPointer()
IASTProblem newProblem(int id, char[] arg, boolean error)
IASTProblemDeclaration newProblemDeclaration(IASTProblem problem)
IASTProblemExpression newProblemExpression(IASTProblem problem)
IASTProblemStatement newProblemStatement(IASTProblem problem)
IASTReturnStatement newReturnStatement(IASTExpression retValue)
IASTSimpleDeclaration newSimpleDeclaration(IASTDeclSpecifier declSpecifier)
IASTSimpleDeclSpecifier newSimpleDeclSpecifier()
IASTSwitchStatement newSwitchStatement(IASTExpression controller, IASTStatement body)
IASTToken newToken(int tokenType, char[] tokenImage)
IASTTokenList newTokenList()
IASTTranslationUnit newTranslationUnit(org.eclipse.cdt.core.parser.IScanner scanner)
scanner
- the preprocessor the translation unit interacts with.IASTNamedTypeSpecifier newTypedefNameSpecifier(IASTName name)
IASTTypeId newTypeId(IASTDeclSpecifier declSpecifier, IASTDeclarator declarator)
IASTTypeIdExpression newTypeIdExpression(int operator, IASTTypeId typeId)
IASTTypeIdInitializerExpression newTypeIdInitializerExpression(IASTTypeId typeId, IASTInitializer initializer)
IASTUnaryExpression newUnaryExpression(int operator, IASTExpression operand)
IASTWhileStatement newWhileStatement(IASTExpression condition, IASTStatement body)
void setEndOffset(IASTNode node, IASTNode endNode)
node
- a node created by this factoryendNode
- a node created by this factory defining the end for the other node.void setEndOffset(IASTNode node, int endOffset)
IToken.getEndOffset()
from a token provided by the scanner for
this translation unit.
node
- a node created by this factoryendOffset
- the end offset (exclusive) for the nodenewTranslationUnit(IScanner)
void setOffsets(IASTNode node, int offset, int endOffset)
IToken.getOffset()
or IToken.getEndOffset()
from tokens
provided by the scanner for this translation unit.
node
- a node created by this factoryoffset
- the offset (inclusive) for the nodeendOffset
- the end offset (exclusive) for the nodenewTranslationUnit(IScanner)
@Deprecated IASTFunctionCallExpression newFunctionCallExpression(IASTExpression idExpr, IASTExpression argList)
newFunctionCallExpression(IASTExpression, IASTInitializerClause[])
@Deprecated IASTInitializerExpression newInitializerExpression(IASTExpression expression)
newEqualsInitializer(IASTInitializerClause)
.@Deprecated IGCCASTAttributeSpecifier newGCCAttributeSpecifier()
Copyright (c) IBM Corp. and others 2004, 2014. All Rights Reserved.