|
|||||||||
| 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 ExpressionTuple

java.lang.Objectorg.ujac.util.exi.Operand
org.ujac.util.exi.ExpressionTuple
- public class ExpressionTuple
- extends Operand
Title: ExpressionTuple
Description: A class holding expression tuples: object, operation and operand.
Log: $Log: ExpressionTuple.java,v $
Log: Revision 1.8 2003/11/01 12:06:38 lauerc
Log: Added copyright notice.
Log:
Log: Revision 1.7 2003/08/29 05:06:32 lauerc
Log: Added flag 'explicitelyEncapsulated'.
Log:
Log: Revision 1.6 2003/07/28 23:18:04 lauerc
Log: Class ExpressionTuple is defived from new class Operand now.
Log: The object and operand members are of type Operand now,
Log: which means they can be VariableOperands, ConstantOperands and
Log: ExpressionTuples.
Log: The attribute operation is of type Operation now.
Log:
Log: Revision 1.5 2003/05/20 21:20:16 lauerc
Log: Added method getCode which returns the actual code for the expression.
Log:
Log: Revision 1.4 2003/03/09 14:03:53 lauerc
Log: Changed type of source to char array.
Log:
Log: Revision 1.3 2003/03/08 18:20:55 lauerc
Log: Added a constructor which initializes source, position and length.
Log: Added operator which passes the total position and length of an expression to a new nested expression.
Log: Deleted unused constructors.
Log:
Log: Revision 1.2 2003/03/08 17:04:01 lauerc
Log: Added properties source, position and length, removed unused properties.
Log:
Log: Revision 1.1 2003/03/05 06:23:25 lauerc
Log: Initial revision.
Log:
- Version:
- $Revision: 1.8 $
| Field Summary | |
private boolean |
explitelyEncapsulated
Tells whether the expression was explicitely encapsulated or not. |
private Operand |
object
The object which to call. |
private Operand |
operand
The object which to call. |
private Operation |
operation
The operation for the expression. |
private java.lang.Object |
result
The result of the expression. |
| Fields inherited from class org.ujac.util.exi.Operand |
|
| Constructor Summary | |
ExpressionTuple()
Default constructor for ExpressionTuple. |
|
ExpressionTuple(char[] source,
int position,
int length)
Constructs an ExpressionTuple instance with specific arguments. |
|
ExpressionTuple(ExpressionTuple outer)
Constructs an ExpressionTuple instance with specific arguments. |
|
| Method Summary | |
Operand |
getObject()
Returns the object. |
Operand |
getOperand()
Returns the operand. |
Operation |
getOperation()
Returns the operation. |
java.lang.Object |
getResult()
Returns the result. |
java.lang.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(java.lang.Object result)
Sets the result. |
java.lang.String |
toString()
Converts expression tuple to String. |
| Methods inherited from class org.ujac.util.exi.Operand |
getCode, getLength, getPosition, getSource, getTotalLength, getTotalPosition, setLength, setPosition, setSource, setTotalLength, setTotalPosition |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
object
private Operand object
- The object which to call.
operation
private Operation operation
- The operation for the expression.
operand
private Operand operand
- The object which to call.
explitelyEncapsulated
private boolean explitelyEncapsulated
- Tells whether the expression was explicitely encapsulated or not.
result
private java.lang.Object result
- The result of the expression.
| Constructor Detail |
ExpressionTuple
public ExpressionTuple()
- Default constructor for ExpressionTuple.
ExpressionTuple
public ExpressionTuple(char[] source,
int position,
int length)
- Constructs an ExpressionTuple instance with specific arguments.
ExpressionTuple
public ExpressionTuple(ExpressionTuple outer)
- Constructs an ExpressionTuple instance with specific arguments.
Copies the source, totalPosition and totalLength from the outer expression.
| Method Detail |
isSimple
public boolean isSimple()
- Description copied from class:
Operand - Tells whether the operand is a simple one or not.
getObject
public Operand getObject()
- Returns the object.
setObject
public void setObject(Operand object)
- Sets the object.
getOperand
public Operand getOperand()
- Returns the operand.
setOperand
public void setOperand(Operand operand)
- Sets the operand.
isExplitelyEncapsulated
public boolean isExplitelyEncapsulated()
- Gets the explitelyEncapsulated flag.
setExplitelyEncapsulated
public void setExplitelyEncapsulated(boolean explitelyEncapsulated)
- Sets the explitelyEncapsulated flag.
getOperation
public Operation getOperation()
- Returns the operation.
setOperation
public void setOperation(Operation operation)
- Sets the operation.
getResult
public java.lang.Object getResult()
- Returns the result.
setResult
public void setResult(java.lang.Object result)
- Sets the result.
getValue
public java.lang.Object getValue()
toString
public java.lang.String toString()
- Converts expression tuple to String.
|
|||||||||
| Home >> All >> org >> ujac >> util >> [ exi overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC