|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ujac.util.exi.Operand
public abstract class Operand
Name: Operand
Description: A common implementation for operands.
Constructor Summary | |
---|---|
Operand()
Constructs an Operand instance with no specific arguments. |
|
Operand(char[] source,
int absolutePosition,
int relativePosition,
int length)
Constructs an Operand instance with specific arguments. |
|
Operand(Operand outer)
Constructs an Operand instance with specific arguments. |
Method Summary | |
---|---|
Object |
clone()
|
int |
getAbsolutePosition()
Gets the tuple's absolute position in the source string. |
String |
getCode()
Gets the source of the current expression part. |
ExpressionType |
getForcedType()
Getter method for the the property forcedType. |
int |
getLength()
Gets the tuple's length. |
int |
getRelativePosition()
Gets the tuple's relative position in the source string. |
char[] |
getSource()
Gets the source. |
int |
getTotalLength()
Gets the tuple's total length. |
int |
getTotalPosition()
Gets the tuple's total position in the source string. |
abstract Object |
getValue()
Gets the operand value. |
abstract boolean |
isSimple()
Tells whether the operand is a simple one or not. |
void |
setAbsolutePosition(int absolutePosition)
Sets the tuple's absolute position in the source string. |
void |
setForcedType(ExpressionType forcedType)
Setter method for the the property forcedType. |
void |
setLength(int length)
Sets the tuple's length. |
void |
setRelativePosition(int relativePosition)
Sets the tuple's relative position in the source string. |
void |
setSource(char[] source)
Sets the source. |
void |
setTotalLength(int totalLength)
Sets the tuple's total length. |
void |
setTotalPosition(int totalPosition)
Sets the tuple's total position in the source string. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Operand()
public Operand(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 Operand(Operand outer)
outer
- The outer expression.Method Detail |
---|
public abstract boolean isSimple()
public String getCode()
public char[] getSource()
public void setSource(char[] source)
source
- The source to setpublic int getAbsolutePosition()
public void setAbsolutePosition(int absolutePosition)
absolutePosition
- The absolute position to set.public int getRelativePosition()
public void setRelativePosition(int relativePosition)
relativePosition
- The relative position to set.public int getLength()
public void setLength(int length)
length
- The length to set.public int getTotalPosition()
public void setTotalPosition(int totalPosition)
totalPosition
- The total position to set.public int getTotalLength()
public void setTotalLength(int totalLength)
totalLength
- The total length to set.public abstract Object getValue()
public ExpressionType getForcedType()
public void setForcedType(ExpressionType forcedType)
forcedType
- The value to set for the property forcedType.public Object clone()
clone
in class Object
Object.clone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |