|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.javascript.rhino.IR
public class IR
An AST construction helper class
Method Summary | |
---|---|
static Node |
add(Node expr1,
Node expr2)
|
static Node |
and(Node expr1,
Node expr2)
|
static Node |
arraylit(Node... exprs)
|
static Node |
assign(Node target,
Node expr)
|
static Node |
block()
|
static Node |
block(Node... stmts)
|
static Node |
block(Node stmt)
|
static Node |
breakNode()
|
static Node |
breakNode(Node name)
|
static Node |
call(Node target,
Node... args)
|
static Node |
caseNode(Node expr,
Node body)
|
static Node |
catchNode(Node expr,
Node body)
|
static Node |
comma(Node expr1,
Node expr2)
|
static Node |
continueNode()
|
static Node |
continueNode(Node name)
|
static Node |
defaultCase(Node body)
|
static Node |
doNode(Node body,
Node cond)
|
static Node |
empty()
|
static Node |
eq(Node expr1,
Node expr2)
"==" |
static Node |
exprResult(Node expr)
|
static Node |
falseNode()
|
static Node |
forIn(Node target,
Node cond,
Node body)
|
static Node |
forNode(Node init,
Node cond,
Node incr,
Node body)
|
static Node |
function(Node name,
Node params,
Node body)
|
static Node |
getelem(Node target,
Node elem)
|
static Node |
getprop(Node target,
Node prop)
|
static Node |
hook(Node cond,
Node trueval,
Node falseval)
|
static Node |
ifNode(Node cond,
Node then)
|
static Node |
ifNode(Node cond,
Node then,
Node elseNode)
|
static Node |
label(Node name,
Node stmt)
|
static Node |
labelName(String name)
|
static Node |
name(String name)
|
static Node |
neg(Node expr1)
|
static Node |
newNode(Node target,
Node... args)
|
static Node |
not(Node expr1)
|
static Node |
nullNode()
|
static Node |
number(double d)
|
static Node |
objectlit(Node... propdefs)
|
static Node |
or(Node expr1,
Node expr2)
|
static Node |
paramList()
|
static Node |
paramList(List<Node> params)
|
static Node |
paramList(Node... params)
|
static Node |
paramList(Node param)
|
static Node |
pos(Node expr1)
|
static Node |
propdef(Node string,
Node value)
|
static Node |
regexp(Node expr)
|
static Node |
regexp(Node expr,
Node flags)
|
static Node |
returnNode()
|
static Node |
returnNode(Node expr)
|
static Node |
script(Node... stmts)
|
static Node |
sheq(Node expr1,
Node expr2)
"===" |
static Node |
string(String s)
|
static Node |
sub(Node expr1,
Node expr2)
|
static Node |
switchNode(Node cond,
Node... cases)
|
static Node |
thisNode()
|
static Node |
throwNode(Node expr)
|
static Node |
trueNode()
|
static Node |
tryCatch(Node tryBody,
Node catchNode)
|
static Node |
tryCatchFinally(Node tryBody,
Node catchNode,
Node finallyBody)
|
static Node |
tryFinally(Node tryBody,
Node finallyBody)
|
static Node |
var(Node name)
|
static Node |
var(Node name,
Node value)
|
static Node |
voidNode(Node expr1)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Node empty()
public static Node function(Node name, Node params, Node body)
public static Node paramList()
public static Node paramList(Node param)
public static Node paramList(Node... params)
public static Node paramList(List<Node> params)
public static Node block()
public static Node block(Node stmt)
public static Node block(Node... stmts)
public static Node script(Node... stmts)
public static Node var(Node name, Node value)
public static Node var(Node name)
public static Node returnNode()
public static Node returnNode(Node expr)
public static Node throwNode(Node expr)
public static Node exprResult(Node expr)
public static Node ifNode(Node cond, Node then)
public static Node ifNode(Node cond, Node then, Node elseNode)
public static Node doNode(Node body, Node cond)
public static Node forIn(Node target, Node cond, Node body)
public static Node forNode(Node init, Node cond, Node incr, Node body)
public static Node switchNode(Node cond, Node... cases)
public static Node caseNode(Node expr, Node body)
public static Node defaultCase(Node body)
public static Node label(Node name, Node stmt)
public static Node labelName(String name)
public static Node tryFinally(Node tryBody, Node finallyBody)
public static Node tryCatch(Node tryBody, Node catchNode)
public static Node tryCatchFinally(Node tryBody, Node catchNode, Node finallyBody)
public static Node catchNode(Node expr, Node body)
public static Node breakNode()
public static Node breakNode(Node name)
public static Node continueNode()
public static Node continueNode(Node name)
public static Node call(Node target, Node... args)
public static Node newNode(Node target, Node... args)
public static Node name(String name)
public static Node getprop(Node target, Node prop)
public static Node getelem(Node target, Node elem)
public static Node assign(Node target, Node expr)
public static Node hook(Node cond, Node trueval, Node falseval)
public static Node comma(Node expr1, Node expr2)
public static Node and(Node expr1, Node expr2)
public static Node or(Node expr1, Node expr2)
public static Node not(Node expr1)
public static Node eq(Node expr1, Node expr2)
public static Node sheq(Node expr1, Node expr2)
public static Node voidNode(Node expr1)
public static Node neg(Node expr1)
public static Node pos(Node expr1)
public static Node add(Node expr1, Node expr2)
public static Node sub(Node expr1, Node expr2)
public static Node objectlit(Node... propdefs)
public static Node propdef(Node string, Node value)
public static Node arraylit(Node... exprs)
public static Node regexp(Node expr)
public static Node regexp(Node expr, Node flags)
public static Node string(String s)
public static Node number(double d)
public static Node thisNode()
public static Node trueNode()
public static Node falseNode()
public static Node nullNode()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |