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
IASTDeclarator
s and IASTDeclSpecifier
s
for a given type.- Since:
- 5.3
- Restriction:
- This interface is not intended to be extended by clients.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DeclarationGenerator
create
(INodeFactory factory) abstract IASTDeclarator
createDeclaratorFromType
(IType type, char[] name) Creates a newIASTDeclarator
for a givenIType
.abstract IASTDeclSpecifier
createDeclSpecFromType
(IType type) Creates a newIASTDeclSpecifier
for a givenIType
.
-
Constructor Details
-
DeclarationGenerator
public DeclarationGenerator()
-
-
Method Details
-
create
-
createDeclSpecFromType
Creates a newIASTDeclSpecifier
for a givenIType
.- Parameters:
type
- the type to describe- Returns:
- the generated declaration specifier
-
createDeclaratorFromType
Creates a newIASTDeclarator
for a givenIType
.- Parameters:
type
- the type to describename
- the name for the declarator- Returns:
- the generated declarator
-