Eclipse CDT
Pre-release 3.0

org.eclipse.cdt.core.dom.ast.cpp
Interface ICPPNodeFactory

All Superinterfaces:
INodeFactory

public interface ICPPNodeFactory
extends INodeFactory

Factory for AST nodes for the C++ programming language.

Since:
5.1

Method Summary
 ICPPASTArraySubscriptExpression newArraySubscriptExpression(IASTExpression arrayExpr, IASTExpression subscript)
           
 ICPPASTCompositeTypeSpecifier.ICPPASTBaseSpecifier newBaseSpecifier(IASTName name, int visibility, boolean isVirtual)
           
 ICPPASTBinaryExpression newBinaryExpression(int op, IASTExpression expr1, IASTExpression expr2)
           
 ICPPASTCastExpression newCastExpression(int operator, IASTTypeId typeId, IASTExpression operand)
           
 ICPPASTCatchHandler newCatchHandler(IASTDeclaration decl, IASTStatement body)
           
 ICPPASTCompositeTypeSpecifier newCompositeTypeSpecifier(int key, IASTName name)
           
 ICPPASTConstructorChainInitializer newConstructorChainInitializer(IASTName memberInitializerId, IASTExpression initializerValue)
           
 ICPPASTConstructorInitializer newConstructorInitializer(IASTExpression exp)
           
 ICPPASTConversionName newConversionName(IASTTypeId typeId)
           
 ICPPASTDeleteExpression newDeleteExpression(IASTExpression operand)
           
 ICPPASTElaboratedTypeSpecifier newElaboratedTypeSpecifier(int kind, IASTName name)
           
 ICPPASTExplicitTemplateInstantiation newExplicitTemplateInstantiation(IASTDeclaration declaration)
           
 IGPPASTExplicitTemplateInstantiation newExplicitTemplateInstantiationGPP(IASTDeclaration declaration)
           
 ICPPASTExpressionList newExpressionList()
           
 ICPPASTFieldReference newFieldReference(IASTName name, IASTExpression owner)
           
 ICPPASTForStatement newForStatement()
           
 ICPPASTForStatement newForStatement(IASTStatement init, IASTDeclaration condition, IASTExpression iterationExpression, IASTStatement body)
           
 ICPPASTForStatement newForStatement(IASTStatement init, IASTExpression condition, IASTExpression iterationExpression, IASTStatement body)
           
 ICPPASTFunctionCallExpression newFunctionCallExpression(IASTExpression idExpr, IASTExpression argList)
           
 ICPPASTFunctionDeclarator newFunctionDeclarator(IASTName name)
           
 ICPPASTFunctionDefinition newFunctionDefinition(IASTDeclSpecifier declSpecifier, IASTFunctionDeclarator declarator, IASTStatement bodyStatement)
           
 ICPPASTFunctionWithTryBlock newFunctionTryBlock(IASTDeclSpecifier declSpecifier, IASTFunctionDeclarator declarator, IASTStatement bodyStatement)
           
 ICPPASTIfStatement newIfStatement()
           
 ICPPASTIfStatement newIfStatement(IASTDeclaration condition, IASTStatement then, IASTStatement elseClause)
           
 ICPPASTIfStatement newIfStatement(IASTExpression condition, IASTStatement then, IASTStatement elseClause)
           
 ICPPASTLinkageSpecification newLinkageSpecification(String literal)
           
 ICPPASTLiteralExpression newLiteralExpression(int kind, String rep)
           
 ICPPASTNamespaceAlias newNamespaceAlias(IASTName alias, IASTName qualifiedName)
           
 ICPPASTNamespaceDefinition newNamespaceDefinition(IASTName name)
           
 ICPPASTNewExpression newNewExpression(IASTExpression placement, IASTExpression initializer, IASTTypeId typeId)
           
 ICPPASTOperatorName newOperatorName(char[] name)
           
 ICPPASTParameterDeclaration newParameterDeclaration(IASTDeclSpecifier declSpec, IASTDeclarator declarator)
           
 IGPPASTPointer newPointerGPP()
           
 ICPPASTPointerToMember newPointerToMember(IASTName name)
           
 IGPPASTPointerToMember newPointerToMemberGPP(IASTName name)
           
 IASTProblemTypeId newProblemTypeId(IASTProblem problem)
           
 ICPPASTQualifiedName newQualifiedName()
           
 ICPPASTReferenceOperator newReferenceOperator()
           
 ICPPASTSimpleDeclSpecifier newSimpleDeclSpecifier()
           
 IGPPASTSimpleDeclSpecifier newSimpleDeclSpecifierGPP()
           
 ICPPASTSimpleTypeConstructorExpression newSimpleTypeConstructorExpression(int type, IASTExpression expression)
           
 ICPPASTSimpleTypeTemplateParameter newSimpleTypeTemplateParameter(int type, IASTName name, IASTTypeId typeId)
           
 ICPPASTSwitchStatement newSwitchStatement()
           
 ICPPASTSwitchStatement newSwitchStatement(IASTDeclaration controller, IASTStatement body)
           
 ICPPASTSwitchStatement newSwitchStatement(IASTExpression controlloer, IASTStatement body)
           
 ICPPASTTemplateDeclaration newTemplateDeclaration(IASTDeclaration declaration)
           
 ICPPASTTemplatedTypeTemplateParameter newTemplatedTypeTemplateParameter(IASTName name, IASTExpression defaultValue)
           
 ICPPASTTemplateId newTemplateId(IASTName templateName)
           
 ICPPASTTemplateSpecialization newTemplateSpecialization(IASTDeclaration declaration)
           
 ICPPASTTranslationUnit newTranslationUnit()
          Calling the method getASTNodeFactory() on the translation unit returned by this method will return the node factory that was used to create the IASTTranslationUnit.
 ICPPASTTryBlockStatement newTryBlockStatement(IASTStatement body)
           
 ICPPASTNamedTypeSpecifier newTypedefNameSpecifier(IASTName name)
           
 ICPPASTTypeIdExpression newTypeIdExpression(int operator, IASTTypeId typeId)
           
 ICPPASTTypenameExpression newTypenameExpression(IASTName qualifiedName, IASTExpression expr, boolean isTemplate)
           
 ICPPASTUnaryExpression newUnaryExpression(int operator, IASTExpression operand)
           
 ICPPASTUsingDeclaration newUsingDeclaration(IASTName name)
           
 ICPPASTUsingDirective newUsingDirective(IASTName name)
           
 ICPPASTVisibilityLabel newVisibilityLabel(int visibility)
           
 ICPPASTWhileStatement newWhileStatement()
           
 ICPPASTWhileStatement newWhileStatement(IASTDeclaration condition, IASTStatement body)
           
 ICPPASTWhileStatement newWhileStatement(IASTExpression condition, IASTStatement body)
           
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.INodeFactory
newArrayDeclarator, newArrayModifier, newASMDeclaration, newBreakStatement, newCaseStatement, newCompoundStatement, newConditionalExpession, newContinueStatement, newDeclarationStatement, newDeclarator, newDefaultStatement, newDoStatement, newEnumerationSpecifier, newEnumerator, newExpressionStatement, newFieldDeclarator, newGNUCompoundStatementExpression, newGotoStatement, newIdExpression, newInitializerExpression, newInitializerList, newLabelStatement, newName, newName, newNullStatement, newPointer, newProblem, newProblemDeclaration, newProblemExpression, newProblemStatement, newReturnStatement, newSimpleDeclaration, newTypeId, newTypeIdInitializerExpression
 

Method Detail

newTranslationUnit

ICPPASTTranslationUnit newTranslationUnit()
Description copied from interface: INodeFactory
Calling the method getASTNodeFactory() on the translation unit returned by this method will return the node factory that was used to create the IASTTranslationUnit.

Specified by:
newTranslationUnit in interface INodeFactory

newLiteralExpression

ICPPASTLiteralExpression newLiteralExpression(int kind,
                                              String rep)
Specified by:
newLiteralExpression in interface INodeFactory

newUnaryExpression

ICPPASTUnaryExpression newUnaryExpression(int operator,
                                          IASTExpression operand)
Specified by:
newUnaryExpression in interface INodeFactory

newCastExpression

ICPPASTCastExpression newCastExpression(int operator,
                                        IASTTypeId typeId,
                                        IASTExpression operand)
Specified by:
newCastExpression in interface INodeFactory

newBinaryExpression

ICPPASTBinaryExpression newBinaryExpression(int op,
                                            IASTExpression expr1,
                                            IASTExpression expr2)
Specified by:
newBinaryExpression in interface INodeFactory

newTypeIdExpression

ICPPASTTypeIdExpression newTypeIdExpression(int operator,
                                            IASTTypeId typeId)
Specified by:
newTypeIdExpression in interface INodeFactory

newFunctionDefinition

ICPPASTFunctionDefinition newFunctionDefinition(IASTDeclSpecifier declSpecifier,
                                                IASTFunctionDeclarator declarator,
                                                IASTStatement bodyStatement)
Specified by:
newFunctionDefinition in interface INodeFactory

newFunctionDeclarator

ICPPASTFunctionDeclarator newFunctionDeclarator(IASTName name)
Specified by:
newFunctionDeclarator in interface INodeFactory

newElaboratedTypeSpecifier

ICPPASTElaboratedTypeSpecifier newElaboratedTypeSpecifier(int kind,
                                                          IASTName name)
Specified by:
newElaboratedTypeSpecifier in interface INodeFactory

newParameterDeclaration

ICPPASTParameterDeclaration newParameterDeclaration(IASTDeclSpecifier declSpec,
                                                    IASTDeclarator declarator)
Specified by:
newParameterDeclaration in interface INodeFactory

newSimpleDeclSpecifier

ICPPASTSimpleDeclSpecifier newSimpleDeclSpecifier()
Specified by:
newSimpleDeclSpecifier in interface INodeFactory

newOperatorName

ICPPASTOperatorName newOperatorName(char[] name)

newNewExpression

ICPPASTNewExpression newNewExpression(IASTExpression placement,
                                      IASTExpression initializer,
                                      IASTTypeId typeId)

newFieldReference

ICPPASTFieldReference newFieldReference(IASTName name,
                                        IASTExpression owner)
Specified by:
newFieldReference in interface INodeFactory

newTemplateId

ICPPASTTemplateId newTemplateId(IASTName templateName)

newConversionName

ICPPASTConversionName newConversionName(IASTTypeId typeId)

newQualifiedName

ICPPASTQualifiedName newQualifiedName()

newSwitchStatement

ICPPASTSwitchStatement newSwitchStatement(IASTExpression controlloer,
                                          IASTStatement body)
Specified by:
newSwitchStatement in interface INodeFactory

newSwitchStatement

ICPPASTSwitchStatement newSwitchStatement(IASTDeclaration controller,
                                          IASTStatement body)

newSwitchStatement

ICPPASTSwitchStatement newSwitchStatement()

newIfStatement

ICPPASTIfStatement newIfStatement(IASTExpression condition,
                                  IASTStatement then,
                                  IASTStatement elseClause)
Specified by:
newIfStatement in interface INodeFactory

newIfStatement

ICPPASTIfStatement newIfStatement(IASTDeclaration condition,
                                  IASTStatement then,
                                  IASTStatement elseClause)

newIfStatement

ICPPASTIfStatement newIfStatement()

newForStatement

ICPPASTForStatement newForStatement(IASTStatement init,
                                    IASTExpression condition,
                                    IASTExpression iterationExpression,
                                    IASTStatement body)
Specified by:
newForStatement in interface INodeFactory

newForStatement

ICPPASTForStatement newForStatement(IASTStatement init,
                                    IASTDeclaration condition,
                                    IASTExpression iterationExpression,
                                    IASTStatement body)

newForStatement

ICPPASTForStatement newForStatement()

newWhileStatement

ICPPASTWhileStatement newWhileStatement(IASTExpression condition,
                                        IASTStatement body)
Specified by:
newWhileStatement in interface INodeFactory

newWhileStatement

ICPPASTWhileStatement newWhileStatement(IASTDeclaration condition,
                                        IASTStatement body)

newWhileStatement

ICPPASTWhileStatement newWhileStatement()

newDeleteExpression

ICPPASTDeleteExpression newDeleteExpression(IASTExpression operand)

newSimpleDeclSpecifierGPP

IGPPASTSimpleDeclSpecifier newSimpleDeclSpecifierGPP()

newSimpleTypeConstructorExpression

ICPPASTSimpleTypeConstructorExpression newSimpleTypeConstructorExpression(int type,
                                                                          IASTExpression expression)

newTypenameExpression

ICPPASTTypenameExpression newTypenameExpression(IASTName qualifiedName,
                                                IASTExpression expr,
                                                boolean isTemplate)

newNamespaceAlias

ICPPASTNamespaceAlias newNamespaceAlias(IASTName alias,
                                        IASTName qualifiedName)

newUsingDeclaration

ICPPASTUsingDeclaration newUsingDeclaration(IASTName name)

newUsingDirective

ICPPASTUsingDirective newUsingDirective(IASTName name)

newLinkageSpecification

ICPPASTLinkageSpecification newLinkageSpecification(String literal)

newNamespaceDefinition

ICPPASTNamespaceDefinition newNamespaceDefinition(IASTName name)

newTemplateDeclaration

ICPPASTTemplateDeclaration newTemplateDeclaration(IASTDeclaration declaration)

newExplicitTemplateInstantiation

ICPPASTExplicitTemplateInstantiation newExplicitTemplateInstantiation(IASTDeclaration declaration)

newExplicitTemplateInstantiationGPP

IGPPASTExplicitTemplateInstantiation newExplicitTemplateInstantiationGPP(IASTDeclaration declaration)

newTemplateSpecialization

ICPPASTTemplateSpecialization newTemplateSpecialization(IASTDeclaration declaration)

newTryBlockStatement

ICPPASTTryBlockStatement newTryBlockStatement(IASTStatement body)

newCatchHandler

ICPPASTCatchHandler newCatchHandler(IASTDeclaration decl,
                                    IASTStatement body)

newVisibilityLabel

ICPPASTVisibilityLabel newVisibilityLabel(int visibility)

newBaseSpecifier

ICPPASTCompositeTypeSpecifier.ICPPASTBaseSpecifier newBaseSpecifier(IASTName name,
                                                                    int visibility,
                                                                    boolean isVirtual)

newCompositeTypeSpecifier

ICPPASTCompositeTypeSpecifier newCompositeTypeSpecifier(int key,
                                                        IASTName name)
Specified by:
newCompositeTypeSpecifier in interface INodeFactory

newTypedefNameSpecifier

ICPPASTNamedTypeSpecifier newTypedefNameSpecifier(IASTName name)
Specified by:
newTypedefNameSpecifier in interface INodeFactory

newPointerGPP

IGPPASTPointer newPointerGPP()

newReferenceOperator

ICPPASTReferenceOperator newReferenceOperator()

newPointerToMember

ICPPASTPointerToMember newPointerToMember(IASTName name)

newPointerToMemberGPP

IGPPASTPointerToMember newPointerToMemberGPP(IASTName name)

newConstructorInitializer

ICPPASTConstructorInitializer newConstructorInitializer(IASTExpression exp)

newConstructorChainInitializer

ICPPASTConstructorChainInitializer newConstructorChainInitializer(IASTName memberInitializerId,
                                                                  IASTExpression initializerValue)

newFunctionTryBlock

ICPPASTFunctionWithTryBlock newFunctionTryBlock(IASTDeclSpecifier declSpecifier,
                                                IASTFunctionDeclarator declarator,
                                                IASTStatement bodyStatement)

newSimpleTypeTemplateParameter

ICPPASTSimpleTypeTemplateParameter newSimpleTypeTemplateParameter(int type,
                                                                  IASTName name,
                                                                  IASTTypeId typeId)

newTemplatedTypeTemplateParameter

ICPPASTTemplatedTypeTemplateParameter newTemplatedTypeTemplateParameter(IASTName name,
                                                                        IASTExpression defaultValue)

newProblemTypeId

IASTProblemTypeId newProblemTypeId(IASTProblem problem)

newExpressionList

ICPPASTExpressionList newExpressionList()
Specified by:
newExpressionList in interface INodeFactory

newArraySubscriptExpression

ICPPASTArraySubscriptExpression newArraySubscriptExpression(IASTExpression arrayExpr,
                                                            IASTExpression subscript)
Specified by:
newArraySubscriptExpression in interface INodeFactory

newFunctionCallExpression

ICPPASTFunctionCallExpression newFunctionCallExpression(IASTExpression idExpr,
                                                        IASTExpression argList)
Specified by:
newFunctionCallExpression in interface INodeFactory

Eclipse CDT
Pre-release 3.0

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