|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.ocpware.compiler.expression.Expression
public class Expression
This class represents an expression.
| Constructor Summary | |
|---|---|
Expression()
Creates a new object. |
|
| Method Summary | |
|---|---|
void |
compile(CompilerState cs)
Compile an expression in ΩCP instructions and store them in a compiler state. |
java.lang.String |
getLeftState()
Getter for leftState. |
java.util.List<Expr> |
getPushBack()
Getter for pushBack. |
Right |
getRight()
Getter for right. |
RightState |
getState()
Getter for state. |
java.util.List<Left> |
getTotalLeft()
Getter for totalLeft. |
static Expression |
parse(ParserStream stream)
Parse an expression. |
static java.util.List<Expression> |
parseExpressions(ParserStream stream)
Parse a list of expressions. |
void |
setLeftState(java.lang.String leftState)
Setter for leftState. |
void |
setPushBack(java.util.List<Expr> pushBack)
Setter for pushBack. |
void |
setRight(Right right)
Setter for right item. |
void |
setState(RightState state)
Setter for state. |
void |
setTotalLeft(java.util.List<Left> totalLeft)
Setter for totalLeft. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Expression()
| Method Detail |
|---|
public static Expression parse(ParserStream stream)
throws java.io.IOException,
SyntaxException
stream - the input stream
java.io.IOException - in case of an I/O error
SyntaxException - in case of a syntax error
public static java.util.List<Expression> parseExpressions(ParserStream stream)
throws java.io.IOException,
SyntaxException
stream - the input stream
java.io.IOException - in case of an I/O error
SyntaxException - in case of a syntax error
public void compile(CompilerState cs)
throws ArgmentTooBigException,
java.io.IOException,
IllegalOpcodeException,
StateNotDefinedException,
TableNotDefinedException,
AliasNotDefinedException
cs - the compiler state
AliasNotDefinedException - in case that no matching alias is known
for a symbolic table reference
ArgmentTooBigException - in case that an argument is encountered
which does not fit into two bytes
java.io.IOException - in case of an I/O error
StateNotDefinedException
TableNotDefinedException - in case that no matching table is known
for a symbolic table reference
IllegalOpcodeException - in case of an illegal op codepublic java.lang.String getLeftState()
public java.util.List<Expr> getPushBack()
public Right getRight()
public RightState getState()
public java.util.List<Left> getTotalLeft()
public void setLeftState(java.lang.String leftState)
leftState - the leftState to setpublic void setPushBack(java.util.List<Expr> pushBack)
pushBack - the pushBack to setpublic void setRight(Right right)
right - the right item to setpublic void setState(RightState state)
state - the state to setpublic void setTotalLeft(java.util.List<Left> totalLeft)
totalLeft - the totalLeft to setpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||