| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_RECURSION_DEPTH |
| Modifier and Type | Method and Description |
|---|---|
IValue |
clone()
Make a deep copy of this value.
|
static DependentValue |
create(ICPPEvaluation eval)
Create a value wrapping the given evaluation.
|
static DependentValue |
create(ICPPTemplateDefinition template,
ICPPTemplateNonTypeParameter tntp)
Creates a value representing the given template parameter
in the given template.
|
boolean |
equals(java.lang.Object obj) |
ICPPEvaluation[] |
getAllSubValues()
If this value consists of sub-values, returns an array containing all of them.
|
ICPPEvaluation |
getEvaluation()
Returns the evaluation object if this value cannot be represented as a single numerical value, or
null otherwise. |
char[] |
getSignature()
Returns a signature uniquely identifying the value.
|
ICPPEvaluation |
getSubValue(int index)
If this value consists of sub-values, returns the sub-value at the given index.
|
int |
hashCode() |
void |
marshal(ITypeMarshalBuffer buf)
Serialize this value to the given type marshal buffer.
|
int |
numberOfSubValues()
If this value consists of sub-values, returns the number of these sub-values.
|
java.lang.Number |
numberValue()
Returns the value as a number, or
null if it is not possible. |
void |
setSubValue(int position,
ICPPEvaluation newValue)
If this value consists of sub-values, set the sub-value at the given position to the given new value.
|
java.lang.String |
toString()
For debugging only.
|
static IValue |
unmarshal(short firstBytes,
ITypeMarshalBuffer buf) |
finalize, getClass, notify, notifyAll, wait, wait, waitgetInternalExpression, getUnknownBindings, numericalValuepublic static final int MAX_RECURSION_DEPTH
public final java.lang.Number numberValue()
IValuenull if it is not possible.numberValue in interface IValuepublic final ICPPEvaluation getEvaluation()
IValuenull otherwise. This can happen if the value is dependent, or it's a composite value.
If IValue.numberValue() returns null, IValue.getEvaluation() returns
not null and vice versa.getEvaluation in interface IValuepublic final char[] getSignature()
IValuegetSignature in interface IValuepublic void marshal(ITypeMarshalBuffer buf) throws CoreException
IValuepublic static IValue unmarshal(short firstBytes, ITypeMarshalBuffer buf) throws CoreException
CoreExceptionpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic static DependentValue create(ICPPTemplateDefinition template, ICPPTemplateNonTypeParameter tntp)
public static DependentValue create(ICPPEvaluation eval)
public final int numberOfSubValues()
IValuenumberOfSubValues in interface IValuepublic final ICPPEvaluation getSubValue(int index)
IValuegetSubValue in interface IValuepublic final ICPPEvaluation[] getAllSubValues()
IValuenull.getAllSubValues in interface IValuepublic void setSubValue(int position,
ICPPEvaluation newValue)
IValuesetSubValue in interface IValue