public interface ICPPASTSimpleTypeTemplateParameter extends ICPPASTTemplateParameter, IASTNameOwner
IASTNode.CopyStyle
Modifier and Type | Field and Description |
---|---|
static ASTNodeProperty |
DEFAULT_TYPE
Relation between template parameter and its default type.
|
static ASTNodeProperty |
PARAMETER_NAME
Relation between template parameter and its name.
|
static int |
st_class
st_class represents a class. |
static int |
st_typename
st_typename represents a typename. |
EMPTY_TEMPLATEPARAMETER_ARRAY
EMPTY_NODE_ARRAY
r_declaration, r_definition, r_reference, r_unclear
Modifier and Type | Method and Description |
---|---|
ICPPASTSimpleTypeTemplateParameter |
copy()
Returns a mutable copy of the tree rooted at this node.
|
ICPPASTSimpleTypeTemplateParameter |
copy(IASTNode.CopyStyle style)
Returns a mutable copy of the tree rooted at this node.
|
IASTTypeId |
getDefaultType()
Returns the default value (a type id) for this template parameter, or
null . |
IASTName |
getName()
Returns the template parameter name.
|
int |
getParameterType()
Get the type of the type parameter (either
st_class or st_typename ). |
void |
setDefaultType(IASTTypeId typeId)
Sets the default value (a type id) for this template parameter.
|
void |
setIsParameterPack(boolean val)
Set whether this is a parameter pack.
|
void |
setName(IASTName name)
Sets the template parameter name.
|
void |
setParameterType(int value)
Set the type of the type parameter.
|
isParameterPack
accept, contains, getChildren, getContainingFilename, getFileLocation, getLeadingSyntax, getNodeLocations, getOriginalNode, getParent, getPropertyInParent, getRawSignature, getSyntax, getTrailingSyntax, getTranslationUnit, isActive, isFrozen, isPartOfTranslationUnitFile, setParent, setPropertyInParent
getRoleForName
static final ASTNodeProperty PARAMETER_NAME
static final ASTNodeProperty DEFAULT_TYPE
static final int st_class
st_class
represents a class.static final int st_typename
st_typename
represents a typename.int getParameterType()
st_class
or st_typename
).IASTName getName()
IASTTypeId getDefaultType()
null
.void setParameterType(int value)
value
- The type of the type parameter (either st_class
or st_typename
)void setIsParameterPack(boolean val)
void setName(IASTName name)
void setDefaultType(IASTTypeId typeId)
ICPPASTSimpleTypeTemplateParameter 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 IASTNode
copy
in interface ICPPASTTemplateParameter
ICPPASTSimpleTypeTemplateParameter 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 IASTNode
copy
in interface ICPPASTTemplateParameter
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.