public interface ICPPASTTemplateDeclaration extends IASTDeclaration
IASTNode.CopyStyle
Modifier and Type | Field and Description |
---|---|
static ASTNodeProperty |
OWNED_DECLARATION
OWNED_DECLARATION is the subdeclaration that we maintain grammatically. |
static ASTNodeProperty |
PARAMETER
PARAMETER is used for template parameters. |
EMPTY_DECLARATION_ARRAY
EMPTY_NODE_ARRAY
Modifier and Type | Method and Description |
---|---|
void |
addTemplateParameter(ICPPASTTemplateParameter paramm)
Adds a template parameter.
|
void |
addTemplateParamter(ICPPASTTemplateParameter paramm)
Deprecated.
|
ICPPASTTemplateDeclaration |
copy()
Returns a mutable copy of the tree rooted at this node.
|
ICPPASTTemplateDeclaration |
copy(IASTNode.CopyStyle style)
Returns a mutable copy of the tree rooted at this node.
|
IASTDeclaration |
getDeclaration()
Returns the template declaration.
|
ICPPTemplateScope |
getScope()
Returns the template scope representing this declaration in the logical tree.
|
ICPPASTTemplateParameter[] |
getTemplateParameters()
Returns the template parameters.
|
boolean |
isExported()
Is the export keyword used?
|
void |
setDeclaration(IASTDeclaration declaration)
Sets the template declaration.
|
void |
setExported(boolean value)
Should the export keyword be used?
|
accept, contains, getChildren, getContainingFilename, getFileLocation, getLeadingSyntax, getNodeLocations, getOriginalNode, getParent, getPropertyInParent, getRawSignature, getSyntax, getTrailingSyntax, getTranslationUnit, isActive, isFrozen, isPartOfTranslationUnitFile, setParent, setPropertyInParent
static final ASTNodeProperty OWNED_DECLARATION
OWNED_DECLARATION
is the subdeclaration that we maintain grammatically.static final ASTNodeProperty PARAMETER
PARAMETER
is used for template parameters.boolean isExported()
void setExported(boolean value)
IASTDeclaration getDeclaration()
void setDeclaration(IASTDeclaration declaration)
declaration
- the declaration to setICPPASTTemplateParameter[] getTemplateParameters()
void addTemplateParameter(ICPPASTTemplateParameter paramm)
paramm
- the parameter to add@Deprecated void addTemplateParamter(ICPPASTTemplateParameter paramm)
addTemplateParameter(ICPPASTTemplateParameter)
.ICPPTemplateScope getScope()
ICPPASTTemplateDeclaration copy()
IASTNode
copy.getParent() == null copy.getPropertyInParent() == null copy.isFrozen() == falsePreprocessor nodes do not currently support being copied. Implicit name nodes are not copied, instead they can be regenerated if required.
Calling this method is equivalent to copy(CopyStyle.withoutLocations)
.
copy
in interface IASTDeclaration
copy
in interface IASTNode
ICPPASTTemplateDeclaration copy(IASTNode.CopyStyle style)
IASTNode
copy.getParent() == null copy.getPropertyInParent() == null copy.isFrozen() == falsePreprocessor nodes do not currently support being copied. Implicit name nodes are not copied, instead they can be regenerated if required.
copy
in interface IASTDeclaration
copy
in interface IASTNode
style
- IASTNode.CopyStyle
create a copy with or without locations. Please see
IASTNode.CopyStyle
for restrictions on copies with Locations.Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.