public interface ICPPASTTemplatedTypeTemplateParameter extends ICPPASTTemplateParameter, IASTNameOwner
V
in
template<template<typename T> class V> class CT;
IASTNode.CopyStyle
Modifier and Type | Field and Description |
---|---|
static ASTNodeProperty |
DEFAULT_VALUE
Relation between template template parameter and its default value.
|
static ASTNodeProperty |
PARAMETER
Relation between template template parameter and its (nested) template parameters.
|
static ASTNodeProperty |
PARAMETER_NAME
Relation between template template parameter and its name.
|
static int |
tt_class
tt_class represents a class. |
static int |
tt_typename
tt_typename represents a typename. |
EMPTY_TEMPLATEPARAMETER_ARRAY
EMPTY_NODE_ARRAY
r_declaration, r_definition, r_reference, r_unclear
Modifier and Type | Method and Description |
---|---|
void |
addTemplateParameter(ICPPASTTemplateParameter parm)
Add a nested template parameter.
|
void |
addTemplateParamter(ICPPASTTemplateParameter parm)
Deprecated.
|
ICPPScope |
asScope()
Returns the scope that contains the template parameters of this template-template parameter.
|
ICPPASTTemplatedTypeTemplateParameter |
copy()
Returns a mutable copy of the tree rooted at this node.
|
ICPPASTTemplatedTypeTemplateParameter |
copy(IASTNode.CopyStyle style)
Returns a mutable copy of the tree rooted at this node.
|
IASTExpression |
getDefaultValue()
Get default value for template template parameter or
null . |
IASTName |
getName()
Get the (optional) name of this template template parameter.
|
int |
getParameterType()
Get the type of the template-template parameter (either
tt_class or tt_typename ). |
ICPPASTTemplateParameter[] |
getTemplateParameters()
Get the nested template parameters.
|
void |
setDefaultValue(IASTExpression expression)
Set default value for the template template parameter.
|
void |
setIsParameterPack(boolean val)
Set whether this template template parameter is a parameter pack.
|
void |
setName(IASTName name)
Set the name of this template template parameter.
|
void |
setParameterType(int type)
Set the type of the template-template 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
static final ASTNodeProperty PARAMETER_NAME
static final ASTNodeProperty DEFAULT_VALUE
static final int tt_class
tt_class
represents a class.static final int tt_typename
tt_typename
represents a typename.ICPPASTTemplateParameter[] getTemplateParameters()
int getParameterType()
tt_class
or tt_typename
).IASTName getName()
IASTExpression getDefaultValue()
null
.ICPPASTTemplatedTypeTemplateParameter 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
ICPPASTTemplatedTypeTemplateParameter 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.void addTemplateParameter(ICPPASTTemplateParameter parm)
void setIsParameterPack(boolean val)
void setParameterType(int type)
type
- The type of the template-template parameter (either tt_class
or tt_typename
)void setName(IASTName name)
void setDefaultValue(IASTExpression expression)
ICPPScope asScope()
@Deprecated void addTemplateParamter(ICPPASTTemplateParameter parm)
addTemplateParameter(ICPPASTTemplateParameter)
Copyright (c) IBM Corp. and others 2004, 2014. All Rights Reserved.