Package org.eclipse.cdt.core.dom.rewrite
Class DeclarationGenerator
- java.lang.Object
-
- org.eclipse.cdt.core.dom.rewrite.DeclarationGenerator
-
public abstract class DeclarationGenerator extends java.lang.ObjectThis class handles the creation ofIASTDeclarators andIASTDeclSpecifiers 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 DeclarationGeneratorcreate(INodeFactory factory)abstract IASTDeclaratorcreateDeclaratorFromType(IType type, char[] name)Creates a newIASTDeclaratorfor a givenIType.abstract IASTDeclSpecifiercreateDeclSpecFromType(IType type)Creates a newIASTDeclSpecifierfor a givenIType.
-
-
-
Method Detail
-
create
public static DeclarationGenerator create(INodeFactory factory)
-
createDeclSpecFromType
public abstract IASTDeclSpecifier createDeclSpecFromType(IType type)
Creates a newIASTDeclSpecifierfor a givenIType.- Parameters:
type- the type to describe- Returns:
- the generated declaration specifier
-
createDeclaratorFromType
public abstract IASTDeclarator createDeclaratorFromType(IType type, char[] name)
Creates a newIASTDeclaratorfor a givenIType.- Parameters:
type- the type to describename- the name for the declarator- Returns:
- the generated declarator
-
-