|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.ocpware.compiler.arith.ArithExpr
org.extex.ocpware.compiler.arith.Constant
public class Constant
This class provides a constant arithmetic expression. It holds a number.
| Constructor Summary | |
|---|---|
Constant(int n)
Creates a new object. |
|
| Method Summary | |
|---|---|
java.util.List<java.lang.Integer> |
genLeft(State state,
CompilerState cs)
Compile the left item and add the appropriate instructions to the state. |
void |
outRight(CompilerState cs,
boolean withOffset)
Compile the string expression into a set of ΩCP instructions. |
java.lang.String |
toString()
|
| Methods inherited from class org.extex.ocpware.compiler.arith.ArithExpr |
|---|
needsParen, parse, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Constant(int n)
n - the value| Method Detail |
|---|
public java.util.List<java.lang.Integer> genLeft(State state,
CompilerState cs)
throws ArgmentTooBigException,
java.io.IOException,
IllegalOpcodeException
genLeft in interface Leftstate - the current statecs - the compiler state
ArgmentTooBigException - in case that an argument is encountered
which does not fit into two bytes
AliasNotDefinedException - in case that no matching alias is known
for a symbolic table reference
java.io.IOException - in case of an I/O error
IllegalOpcodeException - in case of an illegal op codeLeft.genLeft(
org.extex.ocpware.compiler.parser.State, CompilerState)
public void outRight(CompilerState cs,
boolean withOffset)
throws java.io.IOException,
ArgmentTooBigException
outRight in interface Exprcs - the compiler state for lookupwithOffset - use push back instead of output
java.io.IOException - in case of an I/O error
TableNotDefinedException - in case that no matching table is known
for a symbolic table reference
ArgmentTooBigException - in case that an argument is encountered
which does not fit into two bytesExpr.outRight(
org.extex.ocpware.compiler.parser.CompilerState, boolean)public 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 | |||||||||