public class IR extends Object
Modifier and Type | Method and Description |
---|---|
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(List<Node> stmts) |
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 |
cast(Node expr1,
JSDocInfo jsdoc) |
static Node |
catchNode(Node expr,
Node body) |
static Node |
comma(Node expr1,
Node expr2) |
static Node |
computedProp(Node key,
Node value) |
static Node |
constNode(Node lhs,
Node value) |
static Node |
continueNode() |
static Node |
continueNode(Node name) |
static Node |
dec(Node exp,
boolean isPost) |
static Node |
declaration(Node lhs,
Node value,
Token type) |
static Node |
declaration(Node lhs,
Token type) |
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 |
getprop(Node target,
Node prop,
Node... moreProps) |
static Node |
getprop(Node target,
String prop,
String... moreProps) |
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 |
in(Node expr1,
Node expr2) |
static Node |
inc(Node exp,
boolean isPost) |
static Node |
label(Node name,
Node stmt) |
static Node |
labelName(String name) |
static Node |
let(Node lhs,
Node value) |
static Node |
lt(Node expr1,
Node expr2)
"<"
|
static Node |
memberFunctionDef(String name,
Node function) |
static Node |
name(String name) |
static Node |
ne(Node expr1,
Node expr2)
"!="
|
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 |
rest(String name) |
static Node |
returnNode() |
static Node |
returnNode(Node expr) |
static Node |
script() |
static Node |
script(List<Node> stmts) |
static Node |
script(Node... stmts) |
static Node |
sheq(Node expr1,
Node expr2)
"==="
|
static Node |
shne(Node expr1,
Node expr2)
"!=="
|
static Node |
spread(Node expr) |
static Node |
string(String s) |
static Node |
stringKey(String s) |
static Node |
stringKey(String s,
Node value) |
static Node |
sub(Node expr1,
Node expr2) |
static Node |
superNode() |
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 lhs) |
static Node |
var(Node lhs,
Node value) |
static Node |
voidNode(Node expr1) |
static Node |
whileNode(Node cond,
Node body) |
static Node |
yield() |
static Node |
yield(Node expr) |
public static Node empty()
public static Node paramList()
public static Node block()
public static Node script()
public static Node returnNode()
public static Node yield()
public static Node breakNode()
public static Node continueNode()
public static Node superNode()
public static Node number(double d)
public static Node thisNode()
public static Node trueNode()
public static Node falseNode()
public static Node nullNode()
Copyright © 2009-2016 Google. All Rights Reserved.