public final class JSTypeExpression
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
JSTypeExpression(Node root,
java.lang.String sourceName) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
JSType |
evaluate(StaticScope<JSType> scope,
JSTypeRegistry registry)
Evaluates the type expression into a
JSType object. |
Node |
getRoot() |
int |
hashCode() |
boolean |
isOptionalArg() |
boolean |
isVarArgs() |
static JSTypeExpression |
makeOptionalArg(JSTypeExpression expr)
Make the given type expression into an optional type expression,
if possible.
|
public JSTypeExpression(Node root, java.lang.String sourceName)
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 boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Node getRoot()