public interface IValue
Modifier and Type | Method and Description |
---|---|
IValue |
clone()
Make a deep copy of this value.
|
org.eclipse.cdt.internal.core.dom.parser.cpp.ICPPEvaluation[] |
getAllSubValues()
If this value consists of sub-values, returns an array containing all of them.
|
org.eclipse.cdt.internal.core.dom.parser.cpp.ICPPEvaluation |
getEvaluation()
Returns the evaluation object if this value cannot be represented as a single numerical value, or
null otherwise. |
default char[] |
getInternalExpression()
Deprecated.
Returns an empty character array.
|
char[] |
getSignature()
Returns a signature uniquely identifying the value.
|
org.eclipse.cdt.internal.core.dom.parser.cpp.ICPPEvaluation |
getSubValue(int index)
If this value consists of sub-values, returns the sub-value at the given index.
|
default IBinding[] |
getUnknownBindings()
Deprecated.
Returns an empty array.
|
boolean |
isEquivalentTo(IValue other)
Returns true if this value is equivalent to 'other' for declaration matching purposes.
|
void |
marshal(org.eclipse.cdt.internal.core.dom.parser.ITypeMarshalBuffer buffer)
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. |
default java.lang.Long |
numericalValue()
Deprecated.
Use numberValue() instead.
|
void |
setSubValue(int position,
org.eclipse.cdt.internal.core.dom.parser.cpp.ICPPEvaluation newValue)
If this value consists of sub-values, set the sub-value at the given position to the given new value.
|
@Deprecated default java.lang.Long numericalValue()
null
if it is not possible.java.lang.Number numberValue()
null
if it is not possible.int numberOfSubValues()
org.eclipse.cdt.internal.core.dom.parser.cpp.ICPPEvaluation getSubValue(int index)
org.eclipse.cdt.internal.core.dom.parser.cpp.ICPPEvaluation[] getAllSubValues()
null
.org.eclipse.cdt.internal.core.dom.parser.cpp.ICPPEvaluation getEvaluation()
null
otherwise. This can happen if the value is dependent, or it's a composite value.
If numberValue()
returns null
, getEvaluation()
returns
not null
and vice versa.char[] getSignature()
@Deprecated default char[] getInternalExpression()
@Deprecated default IBinding[] getUnknownBindings()
void setSubValue(int position, org.eclipse.cdt.internal.core.dom.parser.cpp.ICPPEvaluation newValue)
IValue clone()
void marshal(org.eclipse.cdt.internal.core.dom.parser.ITypeMarshalBuffer buffer) throws CoreException
CoreException
boolean isEquivalentTo(IValue other)
Copyright (c) IBM Corp. and others 2004, 2014. All Rights Reserved.