public final class JSTypeExpression extends Object implements Serializable
| Constructor and Description |
|---|
JSTypeExpression(Node root,
String sourceName) |
| Modifier and Type | Method and Description |
|---|---|
JSTypeExpression |
clone() |
boolean |
equals(Object other) |
JSType |
evaluate(StaticTypedScope<JSType> scope,
TypeIRegistry registry)
Evaluates the type expression into a
JSType object. |
TypeI |
evaluateInEmptyScope(TypeIRegistry registry) |
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.
|
String |
toString() |
public static JSTypeExpression makeOptionalArg(JSTypeExpression expr)
public boolean isOptionalArg()
@param.public boolean isVarArgs()
@param.public JSType evaluate(StaticTypedScope<JSType> scope, TypeIRegistry registry)
JSType object.public TypeI evaluateInEmptyScope(TypeIRegistry registry)
public Node getRoot()
public JSTypeExpression clone()
Copyright © 2009-2015 Google. All Rights Reserved.