|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ujac.util.exi.Operand org.ujac.util.exi.ExpressionTuple
public class ExpressionTuple
Title: ExpressionTuple
Description: A class holding expression tuples: object, operation and operand.
Constructor Summary | |
---|---|
ExpressionTuple()
Default constructor for ExpressionTuple. |
|
ExpressionTuple(char[] source,
int absolutePosition,
int relativePosition,
int length)
Constructs an ExpressionTuple instance with specific arguments. |
|
ExpressionTuple(ExpressionTuple outer)
Constructs an ExpressionTuple instance with specific arguments. |
Method Summary | |
---|---|
Object |
clone()
|
Operand |
getObject()
Returns the object. |
Operand |
getOperand()
Returns the operand. |
Operation |
getOperation()
Returns the operation. |
Object |
getResult()
Returns the result. |
Object |
getValue()
Gets the operand value. |
boolean |
isExplitelyEncapsulated()
Gets the explitelyEncapsulated flag. |
boolean |
isSimple()
Tells whether the operand is a simple one or not. |
void |
setExplitelyEncapsulated(boolean explitelyEncapsulated)
Sets the explitelyEncapsulated flag. |
void |
setObject(Operand object)
Sets the object. |
void |
setOperand(Operand operand)
Sets the operand. |
void |
setOperation(Operation operation)
Sets the operation. |
void |
setResult(Object result)
Sets the result. |
String |
toString()
Converts expression tuple to String. |
Methods inherited from class org.ujac.util.exi.Operand |
---|
getAbsolutePosition, getCode, getForcedType, getLength, getRelativePosition, getSource, getTotalLength, getTotalPosition, setAbsolutePosition, setForcedType, setLength, setRelativePosition, setSource, setTotalLength, setTotalPosition |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ExpressionTuple()
public ExpressionTuple(char[] source, int absolutePosition, int relativePosition, int length)
source
- The textual source for the expression.absolutePosition
- The absolute start position of the expression within the source.relativePosition
- The relative start position of the expression within the source.length
- The length of the expression.public ExpressionTuple(ExpressionTuple outer)
outer
- The outer expression.Method Detail |
---|
public boolean isSimple()
Operand
isSimple
in class Operand
Operand.isSimple()
public Operand getObject()
public void setObject(Operand object)
object
- The object to setpublic Operand getOperand()
public void setOperand(Operand operand)
operand
- The operand to setpublic boolean isExplitelyEncapsulated()
public void setExplitelyEncapsulated(boolean explitelyEncapsulated)
explitelyEncapsulated
- The value for the explitelyEncapsulated flag to set.public Operation getOperation()
public void setOperation(Operation operation)
operation
- The operation to setpublic Object getResult()
public void setResult(Object result)
result
- The result to setpublic Object getValue()
getValue
in class Operand
public String toString()
toString
in class Object
public Object clone()
clone
in class Operand
Object.clone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |