| 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, waitgetInternalExpression, getUnknownBindings, numericalValuepublic static FloatingPointValue create(char[] fixedValue)
public static FloatingPointValue create(double value)
public java.lang.Number numberValue()
IValuenull if it is not possible.numberValue in interface IValuepublic int numberOfSubValues()
IValuenumberOfSubValues in interface IValuepublic ICPPEvaluation getSubValue(int index)
IValuegetSubValue in interface IValuepublic ICPPEvaluation[] getAllSubValues()
IValuenull.getAllSubValues in interface IValuepublic 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 char[] getSignature()
IValuegetSignature in interface IValuepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic void setSubValue(int position,
ICPPEvaluation newValue)
IValuesetSubValue in interface IValuepublic java.lang.String toString()
toString in class java.lang.Objectpublic IValue clone()
IValuepublic void marshal(ITypeMarshalBuffer buf) throws CoreException
IValuepublic static IValue unmarshal(short firstBytes, ITypeMarshalBuffer buf) throws CoreException
CoreException