Package org.eclipse.cdt.core.dom.rewrite
Class DeclarationGenerator
java.lang.Object
org.eclipse.cdt.core.dom.rewrite.DeclarationGenerator
This class handles the creation of
IASTDeclarators and IASTDeclSpecifiers
for a given type.- Since:
- 5.3
- Restriction:
- This interface is not intended to be extended by clients.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DeclarationGeneratorcreate(INodeFactory factory) abstract IASTDeclaratorcreateDeclaratorFromType(IType type, char[] name) Creates a newIASTDeclaratorfor a givenIType.abstract IASTDeclSpecifiercreateDeclSpecFromType(IType type) Creates a newIASTDeclSpecifierfor a givenIType.
-
Constructor Details
-
DeclarationGenerator
public DeclarationGenerator()
-
-
Method Details
-
create
-
createDeclSpecFromType
Creates a newIASTDeclSpecifierfor a givenIType.- Parameters:
type- the type to describe- Returns:
- the generated declaration specifier
-
createDeclaratorFromType
Creates a newIASTDeclaratorfor a givenIType.- Parameters:
type- the type to describename- the name for the declarator- Returns:
- the generated declarator
-