|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--ponderToolkit.compiler.semantics.expressions.Operator
Function: Models an Operator - it is used both for expression operators and Domain Scope Expression operators
| Field Summary | |
static int |
AND
|
static int |
AT_DOMAIN
|
static int |
CONCURRENCY_AND
|
static int |
CONCURRENCY_OR
|
static int |
CONCURRENCY_PARALLEL
|
static int |
CONCURRENCY_SEQUENTIAL
|
static int |
DIV
|
static int |
DOT
|
static int |
EQUALS
|
static int |
EVENT_OP_AMPER
|
static int |
EVENT_OP_ARROW
|
static int |
EVENT_OP_BAR
|
static int |
EVENT_OP_NO_INTERLEAVE
|
static int |
EVENT_OP_STAR
|
static int |
EVENT_OP_TIME
|
static int |
GREATER_THAN
|
static int |
GREATER_THAN_EQUALS
|
static int |
IMPLIES
|
static int |
LESS_THAN
|
static int |
LESS_THAN_EQUALS
|
static int |
METHOD
|
static int |
MINUS
|
static int |
MULT
|
static int |
NOT
|
static int |
NOT_EQUALS
|
protected int |
op
|
protected java.lang.String |
opStr
Fields |
static int |
OR
|
static int |
PLUS
|
protected TokenPosition |
pos
|
protected int |
precedence
|
static int |
SET_DIFFERENCE
|
static int |
SET_INTERSECTION
|
static int |
SET_UNION
|
static int |
STAR_DOMAIN
|
static int |
XOR
|
| Constructor Summary | |
Operator()
Constructor with no parameters |
|
Operator(java.lang.String newOpStr,
int newOp,
TokenPosition newPos)
Constructor which accepts the string representation of the operator the operator code, and the TokenPosition of the operator in the specification |
|
| Method Summary | |
ExprValue |
evaluate(ExprValue val)
Evaluates: OP val and returns the result Must be overwritten |
ExprValue |
evaluate(ExprValue val1,
ExprValue val2)
Calculates the result of val1 OP val2 and returns a Value Must be overwritten |
int |
getOpCode()
Returns the Operator Code |
java.lang.String |
getOpStr()
Returns the OpStr - The string representing the operator. |
TokenPosition |
getPos()
Returns the TokenPosition of this operator |
int |
getPrecedence()
Returns the Precedence value of the operator. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int PLUS
public static final int MINUS
public static final int MULT
public static final int DIV
public static final int EQUALS
public static final int NOT_EQUALS
public static final int LESS_THAN
public static final int LESS_THAN_EQUALS
public static final int GREATER_THAN
public static final int GREATER_THAN_EQUALS
public static final int AND
public static final int OR
public static final int XOR
public static final int IMPLIES
public static final int NOT
public static final int METHOD
public static final int AT_DOMAIN
public static final int STAR_DOMAIN
public static final int SET_UNION
public static final int SET_DIFFERENCE
public static final int SET_INTERSECTION
public static final int CONCURRENCY_SEQUENTIAL
public static final int CONCURRENCY_OR
public static final int CONCURRENCY_PARALLEL
public static final int CONCURRENCY_AND
public static final int EVENT_OP_TIME
public static final int EVENT_OP_STAR
public static final int EVENT_OP_AMPER
public static final int EVENT_OP_BAR
public static final int EVENT_OP_ARROW
public static final int EVENT_OP_NO_INTERLEAVE
public static final int DOT
protected java.lang.String opStr
protected int op
protected TokenPosition pos
protected int precedence
| Constructor Detail |
public Operator(java.lang.String newOpStr,
int newOp,
TokenPosition newPos)
public Operator()
| Method Detail |
public int getOpCode()
public int getPrecedence()
public java.lang.String getOpStr()
public ExprValue evaluate(ExprValue val1,
ExprValue val2)
public ExprValue evaluate(ExprValue val)
public TokenPosition getPos()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||