| java.lang.Object com.caucho.es.parser.Block
Block | class Block (Code) | | Block is an intermediate form representing an expression.
|
Method Summary | |
void | addExpr(Expr expr) | boolean | allowSpecial() | Block | create() | static Block | create(Parser parser, Function function) | void | defVar(ESId name) Define a new variable. | void | defVar(ESId name, Expr type) Define a new variable with the given type. | void | doBreak(ESId id) | void | doBreak() | void | doCase(int i) | void | doContinue(ESId id) | void | doContinue() | void | doDefault() | void | doReturn(Expr value) | void | doReturn() | void | doThrow(Expr expr) | void | doTry() | void | endBlock() | Block | endCatch() | Block | endDo(Expr expr) | Block | endFinally() | Block | endLoop() | Block | endSynchronized() | Block | endTry() | Block | endWith() | ESException | error(String message) | void | evalExpr() | Block | fillSwitch(ArrayList exprs) | void | finish() | Block | finishBlock() | void | free() | ClassLoader | getClassLoader() | int | getDepth() | String | getFilename() | int | getLine() | int | getWithDepth() | Expr | hasNext(String iter) | boolean | hasVar(ESId name) Returns true if the variable is already declared. | boolean | isGlobal() | Expr | newArray(Expr expr) | String | newIterator(ESId id, Expr expr) | Expr | newLiteral(ESBase value) | Expr | newRegexp(ESBase value, String flags) | Expr | newThis() | Expr | newType(ESId name) | IdExpr | newVar(ESId name) | IdExpr | newVar(ESId name, Expr type) | Block | pop() | void | setLine(int line) | void | setTop() | Block | startBlock() | Block | startBlock(ESId id) | Block | startCatch(String exn, Expr var) | Block | startDo(ESId id) | void | startElse() | Block | startFinally() | Block | startFor(ESId id, Expr test, Expr incr) | void | startIf(Expr expr, boolean isElse) | void | startLoop(ESId id) | Block | startSwitch(Expr test) | Block | startSynchronized(Expr expr) | Block | startTry() | Block | startWhile(ESId id, Expr expr) | Block | startWith(Expr expr) |
allowSpecial | boolean allowSpecial()(Code) | | |
defVar | void defVar(ESId name)(Code) | | Define a new variable.
|
defVar | void defVar(ESId name, Expr type)(Code) | | Define a new variable with the given type.
|
getWithDepth | int getWithDepth()(Code) | | |
hasVar | boolean hasVar(ESId name)(Code) | | Returns true if the variable is already declared.
|
isGlobal | boolean isGlobal()(Code) | | |
setLine | void setLine(int line)(Code) | | |
|
|