Package com.google.javascript.rhino
Class IR
- java.lang.Object
-
- com.google.javascript.rhino.IR
-
public class IR extends java.lang.ObjectAn AST construction helper class
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Nodeadd(Node expr1, Node expr2)static Nodeand(Node expr1, Node expr2)static Nodearraylit(Node... exprs)static Nodearraylit(java.lang.Iterable<Node> exprs)static NodearrayPattern(Node... keys)static NodearrowFunction(Node name, Node params, Node body)static Nodeassign(Node target, Node expr)static NodeassignAnd(Node expr1, Node expr2)"&&="static NodeassignCoalesce(Node expr1, Node expr2)"??="static NodeassignOr(Node expr1, Node expr2)"||="static Nodeawait(Node expr)static Nodebigint(java.math.BigInteger b)static Nodeblock()static Nodeblock(Node stmt)static Nodeblock(Node... stmts)static Nodeblock(java.util.List<Node> stmts)static NodebreakNode()static NodebreakNode(Node name)static Nodecall(Node target, Node... args)static NodecaseNode(Node expr, Node body)static Nodecast(Node expr1, JSDocInfo jsdoc)static NodecatchNode(Node expr, Node body)static Nodecoalesce(Node expr1, Node expr2)static Nodecomma(Node expr1, Node expr2)static NodecomputedProp(Node key, Node value)static NodeconstNode(Node lhs, Node value)static NodecontinueNode()static NodecontinueNode(Node name)static NodecontinueOptChainCall(Node target, Node... args)static NodecontinueOptChainGetelem(Node target, Node elem)static NodecontinueOptChainGetprop(Node target, java.lang.String prop)static Nodedec(Node exp, boolean isPost)static Nodedeclaration(Node lhs, Node value, Token type)static Nodedeclaration(Node lhs, Token type)static NodedefaultCase(Node body)static Nodedelprop(Node target)static NodedoNode(Node body, Node cond)static Nodeempty()static Nodeeq(Node expr1, Node expr2)"=="static Nodeexport(Node declaration)static NodeexprResult(Node expr)static NodefalseNode()static NodeforIn(Node target, Node cond, Node body)static NodeforNode(Node init, Node cond, Node incr, Node body)static Nodefunction(Node name, Node params, Node body)static Nodege(Node expr1, Node expr2)">="static Nodegetelem(Node target, Node elem)static Nodegetprop(Node target, java.lang.String prop)static Nodegetprop(Node target, java.lang.String prop, java.lang.String... moreProps)static NodegetterDef(java.lang.String name, Node value)static Nodehook(Node cond, Node trueval, Node falseval)static NodeifNode(Node cond, Node then)static NodeifNode(Node cond, Node then, Node elseNode)static NodeimportMeta()static NodeimportNode(Node name, Node importSpecs, Node moduleIdentifier)static NodeimportStar(java.lang.String name)static Nodein(Node expr1, Node expr2)static Nodeinc(Node exp, boolean isPost)static NodeiterRest(Node target)static NodeiterSpread(Node expr)static Nodelabel(Node name, Node stmt)static NodelabelName(java.lang.String name)static Nodelet(Node lhs)static Nodelet(Node lhs, Node value)static Nodelt(Node expr1, Node expr2)"<"static booleanmayBeExpression(Node n)It isn't possible to always determine if a detached node is a expression, so make a best guess.static booleanmayBeStatement(Node n)It isn't possible to always determine if a detached node is a expression, so make a best guess.static NodememberFieldDef(java.lang.String name, Node value)static NodememberFunctionDef(java.lang.String name, Node function)static Nodename(java.lang.String name)static Nodene(Node expr1, Node expr2)"!="static Nodeneg(Node expr1)static NodenewNode(Node target, Node... args)static Nodenot(Node expr1)static NodenullNode()static Nodenumber(double d)static Nodeobjectlit(Node... propdefs)static NodeobjectPattern(Node... keys)static NodeobjectRest(Node target)static NodeobjectSpread(Node expr)static Nodeor(Node expr1, Node expr2)static NodeparamList(Node... params)static Nodepos(Node expr1)static Nodepropdef(Node string, Node value)static NodequotedStringKey(java.lang.String s, Node value)static Noderegexp(Node expr)static Noderegexp(Node expr, Node flags)static NodereturnNode()static NodereturnNode(Node expr)static Noderoot(Node... rootChildren)static Nodescript()static Nodescript(Node... stmts)static Nodescript(java.util.List<Node> stmts)static NodesetterDef(java.lang.String name, Node value)static Nodesheq(Node expr1, Node expr2)"==="static Nodeshne(Node expr1, Node expr2)"!=="static NodestartOptChainCall(Node target, Node... args)static NodestartOptChainGetelem(Node target, Node elem)static NodestartOptChainGetprop(Node target, java.lang.String prop)static Nodestring(java.lang.String s)static NodestringKey(java.lang.String s)static NodestringKey(java.lang.String s, Node value)static Nodesub(Node expr1, Node expr2)static NodesuperNode()static NodeswitchNode(Node cond, Node... cases)static NodethisNode()static NodethrowNode(Node expr)static NodetrueNode()static NodetryCatch(Node tryBody, Node catchNode)static NodetryCatchFinally(Node tryBody, Node catchNode, Node finallyBody)static NodetryFinally(Node tryBody, Node finallyBody)static Nodetypeof(Node expr)static Nodevar(Node lhs)static Nodevar(Node lhs, Node value)static NodevoidNode(Node expr1)static NodewhileNode(Node cond, Node body)static Nodeyield()static Nodeyield(Node expr)
-
-
-
Method Detail
-
empty
public static Node empty()
-
importStar
public static Node importStar(java.lang.String name)
-
block
public static Node block()
-
script
public static Node script()
-
returnNode
public static Node returnNode()
-
yield
public static Node yield()
-
labelName
public static Node labelName(java.lang.String name)
-
breakNode
public static Node breakNode()
-
continueNode
public static Node continueNode()
-
name
public static Node name(java.lang.String name)
-
continueOptChainGetprop
public static Node continueOptChainGetprop(Node target, java.lang.String prop)
-
getprop
public static Node getprop(Node target, java.lang.String prop, java.lang.String... moreProps)
-
string
public static Node string(java.lang.String s)
-
stringKey
public static Node stringKey(java.lang.String s)
-
superNode
public static Node superNode()
-
number
public static Node number(double d)
-
bigint
public static Node bigint(java.math.BigInteger b)
-
thisNode
public static Node thisNode()
-
trueNode
public static Node trueNode()
-
falseNode
public static Node falseNode()
-
nullNode
public static Node nullNode()
-
importMeta
public static Node importMeta()
-
mayBeStatement
public static boolean mayBeStatement(Node n)
It isn't possible to always determine if a detached node is a expression, so make a best guess.
-
mayBeExpression
public static boolean mayBeExpression(Node n)
It isn't possible to always determine if a detached node is a expression, so make a best guess.
-
-