public interface ICPPTemplateArgument
Modifier and Type | Field and Description |
---|---|
static ICPPTemplateArgument[] |
EMPTY_ARGUMENTS |
Modifier and Type | Method and Description |
---|---|
ICPPTemplateArgument |
getExpansionPattern()
Returns the expansion pattern, if this is a pack expansion, or
null otherwise. |
ICPPEvaluation |
getNonTypeEvaluation()
If this is a non-type value (suitable for a template non-type parameters),
the evaluation object is returned.
|
IValue |
getNonTypeValue()
If this is a non-type value (suitable for a template non-type parameters),
the value is returned.
|
IType |
getOriginalTypeValue()
Similar to
getTypeValue() but returns the original type value before typedef
resolution. |
IType |
getTypeOfNonTypeValue()
If this is a non-type value (suitable for a template non-type parameter),
the type of the value is returned.
|
IType |
getTypeValue()
If this is a type value (suitable for a template type and template template parameters),
the type used as a value is returned.
|
boolean |
isNonTypeValue()
Returns whether this is an integral value, suitable for a template non-type parameter.
|
boolean |
isPackExpansion()
Returns whether this template argument is a pack expansion or not.
|
boolean |
isSameValue(ICPPTemplateArgument arg)
Checks whether two arguments denote the same value.
|
boolean |
isTypeValue()
Returns whether this is a type value, suitable for either a template type or a
template template parameter.
|
static final ICPPTemplateArgument[] EMPTY_ARGUMENTS
boolean isNonTypeValue()
boolean isTypeValue()
IType getTypeValue()
null
is returned.
The returned type has all typedefs resolved.IType getOriginalTypeValue()
getTypeValue()
but returns the original type value before typedef
resolution.ICPPEvaluation getNonTypeEvaluation()
null
is returned.IValue getNonTypeValue()
null
is returned.IType getTypeOfNonTypeValue()
null
is returned.boolean isSameValue(ICPPTemplateArgument arg)
boolean isPackExpansion()
ICPPTemplateArgument getExpansionPattern()
null
otherwise.