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_ARRAYEMPTY_NODE_ARRAYr_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 parameter type.
|
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 parameter type.
|
isParameterPackaccept, contains, getChildren, getContainingFilename, getFileLocation, getLeadingSyntax, getNodeLocations, getOriginalNode, getParent, getPropertyInParent, getRawSignature, getSyntax, getTrailingSyntax, getTranslationUnit, isActive, isFrozen, isPartOfTranslationUnitFile, setParent, setPropertyInParentgetRoleForNamestatic 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()
IASTName getName()
IASTTypeId getDefaultType()
null.void setParameterType(int value)
void setIsParameterPack(boolean val)
void setName(IASTName name)
void setDefaultType(IASTTypeId typeId)
ICPPASTSimpleTypeTemplateParameter copy()
IASTNodecopy.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 IASTNodecopy in interface ICPPASTTemplateParameterICPPASTSimpleTypeTemplateParameter copy(IASTNode.CopyStyle style)
IASTNodecopy.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 IASTNodecopy in interface ICPPASTTemplateParameterstyle - 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, 2014. All Rights Reserved.