Modifier and Type | Method and Description |
---|---|
IValue |
clone()
Make a deep copy of this value.
|
static FloatingPointValue |
create(char[] fixedValue) |
static FloatingPointValue |
create(double value) |
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() |
static IValue |
unmarshal(short firstBytes,
ITypeMarshalBuffer buf) |
finalize, getClass, notify, notifyAll, wait, wait, wait
getInternalExpression, getUnknownBindings, numericalValue
public static FloatingPointValue create(char[] fixedValue)
public static FloatingPointValue create(double value)
public java.lang.Number numberValue()
IValue
null
if it is not possible.numberValue
in interface IValue
public int numberOfSubValues()
IValue
numberOfSubValues
in interface IValue
public ICPPEvaluation getSubValue(int index)
IValue
getSubValue
in interface IValue
public ICPPEvaluation[] getAllSubValues()
IValue
null
.getAllSubValues
in interface IValue
public 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 char[] getSignature()
IValue
getSignature
in interface IValue
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public void setSubValue(int position, ICPPEvaluation newValue)
IValue
setSubValue
in interface IValue
public java.lang.String toString()
toString
in class java.lang.Object
public IValue clone()
IValue
public void marshal(ITypeMarshalBuffer buf) throws CoreException
IValue
public static IValue unmarshal(short firstBytes, ITypeMarshalBuffer buf) throws CoreException
CoreException