|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.nasa.arc.brahms.vm.data.ExpressionValue
public class ExpressionValue
The ExpressionValue represents the resulting value for an expression located at the left or right hand side of a comparison.
Constructor Summary | |
---|---|
ExpressionValue()
Constructor, creates a new ExpressionValue. |
|
ExpressionValue(java.lang.Object value,
int type)
Constructor, creates a new ExpressionValue specifying the resulting value after evaluating the expression. |
Method Summary | |
---|---|
void |
addStatement(VMStatementCtx ctx)
Add the specified statement context to the list of statements from which their right hand side values are used in evaluating the expression to come to the resulting value. |
boolean |
equals(java.lang.Object obj)
Tests whether two ExpressionValue are equal |
java.util.LinkedList |
getStatements()
Returns the statements from which the value was established |
java.lang.Object |
getValue()
Returns the value for the expression |
int |
getValueType()
Returns the value's type |
void |
setValue(java.lang.Object value)
Sets the expression value |
void |
setValueType(int type)
Sets the value's type |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExpressionValue()
public ExpressionValue(java.lang.Object value, int type)
value
- the resulting value of the expressiontype
- the type of the valueIConstants.INT
,
IConstants.BYTE
,
IConstants.SHORT
,
IConstants.INT
,
IConstants.LONG
,
IConstants.FLOAT
,
IConstants.DOUBLE
,
IConstants.BOOLEAN
,
IConstants.STRING
,
IConstants.SYMBOL
,
IConstants.UDT
,
IConstants.JAVA_TYPE
,
IConstants.UNKNOWN
Method Detail |
---|
public final java.lang.Object getValue()
public final void setValue(java.lang.Object value)
value
- the expression valuepublic final int getValueType()
IConstants.INT
,
IConstants.CHAR
,
IConstants.BYTE
,
IConstants.SHORT
,
IConstants.LONG
,
IConstants.FLOAT
,
IConstants.DOUBLE
,
IConstants.BOOLEAN
,
IConstants.STRING
,
IConstants.SYMBOL
,
IConstants.UDT
,
IConstants.JAVA_TYPE
,
IConstants.UNKNOWN
public final void setValueType(int type)
type
- the value typeIConstants.INT
,
IConstants.CHAR
,
IConstants.BYTE
,
IConstants.SHORT
,
IConstants.LONG
,
IConstants.FLOAT
,
IConstants.DOUBLE
,
IConstants.BOOLEAN
,
IConstants.STRING
,
IConstants.SYMBOL
,
IConstants.UDT
,
IConstants.JAVA_TYPE
,
IConstants.UNKNOWN
public final void addStatement(VMStatementCtx ctx)
ctx
- the VMStatementCtx to be addedpublic final java.util.LinkedList getStatements()
public final boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the ExpressionValue to be tested with for equality
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |