public final class JSTypeExpression extends Object implements Serializable
Constructor and Description |
---|
JSTypeExpression(Node root,
String sourceName) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
JSType |
evaluate(StaticScope<JSType> scope,
JSTypeRegistry registry)
Evaluates the type expression into a
JSType object. |
Node |
getRoot() |
Node |
getRootNode() |
int |
hashCode() |
boolean |
isOptionalArg() |
boolean |
isVarArgs() |
static JSTypeExpression |
makeOptionalArg(JSTypeExpression expr)
Make the given type expression into an optional type expression,
if possible.
|
public Node getRootNode()
public static JSTypeExpression makeOptionalArg(JSTypeExpression expr)
public boolean isOptionalArg()
@param
.public boolean isVarArgs()
@param
.public JSType evaluate(StaticScope<JSType> scope, JSTypeRegistry registry)
JSType
object.public Node getRoot()
Copyright © 2009–2015 Google. All rights reserved.