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, wait
getInternalExpression, getUnknownBindings, numericalValue
public static final int MAX_RECURSION_DEPTH
public final java.lang.Number numberValue()
IValue
null
if it is not possible.numberValue
in interface IValue
public final ICPPEvaluation getEvaluation()
IValue
null
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 IValue
public final char[] getSignature()
IValue
getSignature
in interface IValue
public void marshal(ITypeMarshalBuffer buf) throws CoreException
IValue
public static IValue unmarshal(short firstBytes, ITypeMarshalBuffer buf) throws CoreException
CoreException
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static DependentValue create(ICPPTemplateDefinition template, ICPPTemplateNonTypeParameter tntp)
public static DependentValue create(ICPPEvaluation eval)
public final int numberOfSubValues()
IValue
numberOfSubValues
in interface IValue
public final ICPPEvaluation getSubValue(int index)
IValue
getSubValue
in interface IValue
public final ICPPEvaluation[] getAllSubValues()
IValue
null
.getAllSubValues
in interface IValue
public void setSubValue(int position, ICPPEvaluation newValue)
IValue
setSubValue
in interface IValue