Uses of Class
com.google.javascript.rhino.Token
-
Packages that use Token Package Description com.google.javascript.jscomp com.google.javascript.rhino -
-
Uses of Token in com.google.javascript.jscomp
Methods in com.google.javascript.jscomp with parameters of type Token Modifier and Type Method Description protected void
JsMessageVisitor. checkNode(@Nullable Node node, Token type)
Checks a node's type.static Node
NodeUtil. getEnclosingType(Node n, Token type)
Gets the closest ancestor to the given node of the provided type.static Node
NodeUtil. newDeclaration(Node lhs, @Nullable Node rhs, Token declarationType)
static Node
NodeUtil. newQNameDeclaration(AbstractCompiler compiler, java.lang.String name, Node value, JSDocInfo info, Token type)
Creates a node representing a qualified name.static @Nullable java.lang.String
NodeUtil. opToStr(Token operator)
Converts an operator's token value (seeToken
) to a string representation.static int
NodeUtil. precedence(Token type)
The comma operator has the lowest precedence, 0, followed by the assignment operators (=
,&=
,+=
, etc.) which have precedence of 1, and so on. -
Uses of Token in com.google.javascript.rhino
Methods in com.google.javascript.rhino that return Token Modifier and Type Method Description Token
Node. getToken()
static Token
Token. valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Token[]
Token. values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in com.google.javascript.rhino with parameters of type Token Modifier and Type Method Description static int
Token. arity(Token token)
If the arity isn't always the same, this function returns -1static Node
IR. declaration(Node lhs, Node value, Token type)
static Node
IR. declaration(Node lhs, Token type)
static Node
Node. newString(Token token, java.lang.String str)
void
Node. setToken(Token token)
Constructors in com.google.javascript.rhino with parameters of type Token Constructor Description Node(Token token)
Node(Token token, Node child)
Node(Token token, Node left, Node right)
Node(Token token, Node left, Node mid, Node right)
-