|
||||||||||
| 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.ConstantOperand
public class ConstantOperand
Name: ConstantOperand
Description: A class implementing operands holding constant values.
| Constructor Summary | |
|---|---|
ConstantOperand()
Constructs a ConstantOperand instance with specific attributes. |
|
ConstantOperand(char[] source,
int absolutePosition,
int relativePosition,
int length)
Constructs a ConstantOperand instance with specific attributes. |
|
ConstantOperand(Operand outer)
Constructs a ConstantOperand instance with specific attributes. |
|
| Method Summary | |
|---|---|
Object |
clone()
|
Object |
getObject()
Returns the constant object. |
Object |
getValue()
Gets the operand value. |
boolean |
isSimple()
Tells whether the operand is a simple one or not. |
void |
setObject(Object object)
Sets the constant object. |
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 ConstantOperand()
public ConstantOperand(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 ConstantOperand(Operand outer)
outer - The outer expression.| Method Detail |
|---|
public boolean isSimple()
Operand
isSimple in class OperandOperand.isSimple()public Object getObject()
public void setObject(Object object)
object - The object to setpublic 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 | |||||||||