Package org.eclipse.cdt.core.dom.rewrite
Class DeclarationGenerator
- java.lang.Object
-
- org.eclipse.cdt.core.dom.rewrite.DeclarationGenerator
-
public abstract class DeclarationGenerator extends Object
This class handles the creation ofIASTDeclarator
s andIASTDeclSpecifier
s for a given type.- Since:
- 5.3
- Restriction:
- This interface is not intended to be extended by clients.
-
-
Constructor Summary
Constructors Constructor Description DeclarationGenerator()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static 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
.
-
-
-
Method Detail
-
create
public static DeclarationGenerator create(INodeFactory factory)
-
createDeclSpecFromType
public abstract IASTDeclSpecifier createDeclSpecFromType(IType type)
Creates a newIASTDeclSpecifier
for a givenIType
.- Parameters:
type
- the type to describe- Returns:
- the generated declaration specifier
-
createDeclaratorFromType
public abstract IASTDeclarator createDeclaratorFromType(IType type, char[] name)
Creates a newIASTDeclarator
for a givenIType
.- Parameters:
type
- the type to describename
- the name for the declarator- Returns:
- the generated declarator
-
-