|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujac.util.exi.Operand
org.ujac.util.exi.VariableOperand
public class VariableOperand
Name: VariableOperand
Description: A class implementing operands holding variables.
| Constructor Summary | |
|---|---|
VariableOperand()
Constructs a VariableOperand instance with specific attributes. |
|
VariableOperand(char[] source,
int absolutePosition,
int relativePosition,
int length)
Constructs an VariableOperand instance with specific arguments. |
|
VariableOperand(Operand outer)
Constructs an VariableOperand instance with specific arguments. |
|
| Method Summary | |
|---|---|
Object |
clone()
|
Object |
getObject()
Returns the object, connected to the variable. |
Object |
getValue()
Gets the operand value. |
String |
getVariable()
Returns the variable. |
boolean |
isNegative()
Tells whether the variable is signed negative or not. |
boolean |
isSimple()
Tells whether the operand is a simple one or not. |
void |
setNegative(boolean negative)
Sets the negative flag for the variable. |
void |
setObject(Object object)
Sets the object, connected to the variable. |
void |
setVariable(String variable)
Sets the variable. |
String |
toString()
|
| 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 VariableOperand()
public VariableOperand(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 VariableOperand(Operand outer)
outer - The outer expression.| Method Detail |
|---|
public boolean isSimple()
Operand
isSimple in class OperandOperand.isSimple()public String getVariable()
public void setVariable(String variable)
variable - The variable to setpublic Object getObject()
public void setObject(Object object)
object - The object to setpublic boolean isNegative()
public void setNegative(boolean negative)
negative - true if the variable shall be signed negative, else false.public Object getValue()
getValue in class Operandpublic String toString()
toString in class ObjectObject.toString()public Object clone()
clone in class OperandObject.clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||