|
|||||||||
| Home >> All >> org >> ujac >> util >> [ exi overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.ujac.util.exi
Class Operand

java.lang.Objectorg.ujac.util.exi.Operand
- Direct Known Subclasses:
- ConstantOperand, ExpressionTuple, VariableOperand
- public abstract class Operand
- extends java.lang.Object
Name: Operand
Description: A common implementation for operands.
Log: $Log: Operand.java,v $
Log: Revision 1.3 2003/11/01 12:06:38 lauerc
Log: Added copyright notice.
Log:
Log: Revision 1.2 2003/09/28 15:38:24 lauerc
Log: Fixed javadoc comments.
Log:
Log: Revision 1.1 2003/07/28 22:35:06 lauerc
Log: Initial revision.
Log:
- Version:
- $Revision: 1.3 $
| Field Summary | |
private int |
length
The tuple's length. |
private int |
position
The tuple's position in the source string. |
private char[] |
source
The expression source. |
private int |
totalLength
The length of the whole expression, this differs for nested expressions. |
private int |
totalPosition
The position of the whole expression, this differs for nested expressions. |
| Constructor Summary | |
Operand()
Constructs an Operand instance with no specific arguments. |
|
Operand(char[] source,
int position,
int length)
Constructs an Operand instance with specific arguments. |
|
Operand(Operand outer)
Constructs an Operand instance with specific arguments. |
|
| Method Summary | |
java.lang.String |
getCode()
Gets the source of the current expression part. |
int |
getLength()
Gets the tuple's length. |
int |
getPosition()
Gets the tuple's 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 java.lang.Object |
getValue()
Gets the operand value. |
abstract boolean |
isSimple()
Tells whether the operand is a simple one or not. |
void |
setLength(int length)
Sets the tuple's length. |
void |
setPosition(int position)
Sets the tuple's 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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
source
private char[] source
- The expression source.
position
private int position
- The tuple's position in the source string.
length
private int length
- The tuple's length.
totalPosition
private int totalPosition
- The position of the whole expression, this differs for nested expressions.
totalLength
private int totalLength
- The length of the whole expression, this differs for nested expressions.
| Constructor Detail |
Operand
public Operand()
- Constructs an Operand instance with no specific arguments.
Operand
public Operand(char[] source,
int position,
int length)
- Constructs an Operand instance with specific arguments.
Operand
public Operand(Operand outer)
- Constructs an Operand instance with specific arguments.
Copies the source, totalPosition and totalLength from the outer expression.
| Method Detail |
isSimple
public abstract boolean isSimple()
- Tells whether the operand is a simple one or not.
getCode
public java.lang.String getCode()
- Gets the source of the current expression part.
getSource
public char[] getSource()
- Gets the source.
setSource
public void setSource(char[] source)
- Sets the source.
getPosition
public int getPosition()
- Gets the tuple's position in the source string.
setPosition
public void setPosition(int position)
- Sets the tuple's position in the source string.
getLength
public int getLength()
- Gets the tuple's length.
setLength
public void setLength(int length)
- Sets the tuple's length.
getTotalPosition
public int getTotalPosition()
- Gets the tuple's total position in the source string.
setTotalPosition
public void setTotalPosition(int totalPosition)
- Sets the tuple's total position in the source string.
getTotalLength
public int getTotalLength()
- Gets the tuple's total length.
setTotalLength
public void setTotalLength(int totalLength)
- Sets the tuple's total length.
getValue
public abstract java.lang.Object getValue()
- Gets the operand value.
|
|||||||||
| Home >> All >> org >> ujac >> util >> [ exi overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.ujac.util.exi.Operand