|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rubato.rubettes.builtin.ArithCompiler
public class ArithCompiler
Parses an expression of real arithmetic including boolean expressions.
Constructor Summary | |
---|---|
ArithCompiler()
Creates a compiler. |
|
ArithCompiler(java.lang.String expressionString)
Creates a compiler with the given string as input. |
|
ArithCompiler(java.lang.String expressionString,
boolean isResultReal)
Creates a compiler with the given string as input. |
Method Summary | |
---|---|
java.lang.String |
getError()
Returns the error if any. |
ArithVM |
getVM()
Returns the virtual machine with the code compiled from the expression. |
boolean |
hasError()
Returns true iff the compilation failed. |
boolean |
parse()
Parses the expression string, assuming there are no arguments. |
boolean |
parse(int nrArgs)
Parses the expression string, assuming there are nArgs arguments. |
void |
setExpression(java.lang.String s)
Sets the expression string for the compiler. |
void |
setExpression(java.lang.String s,
boolean isResultReal)
Sets the expression string for the compiler. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArithCompiler(java.lang.String expressionString)
public ArithCompiler(java.lang.String expressionString, boolean isResultReal)
public ArithCompiler()
Method Detail |
---|
public void setExpression(java.lang.String s)
public void setExpression(java.lang.String s, boolean isResultReal)
public ArithVM getVM()
public boolean parse()
public boolean parse(int nrArgs)
nArgs
arguments.
public java.lang.String getError()
public boolean hasError()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |