public final class JSTypeExpression extends Object implements Serializable
| Constructor and Description |
|---|
JSTypeExpression(Node root,
String sourceName) |
| Modifier and Type | Method and Description |
|---|---|
JSTypeExpression |
copy() |
boolean |
equals(Object other) |
JSType |
evaluate(StaticTypedScope<JSType> scope,
TypeIRegistry registry)
Evaluates the type expression into a
JSType object. |
Node |
getRoot() |
String |
getSourceName() |
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 Node getRoot()
public String getSourceName()
public JSTypeExpression copy()
Copyright © 2009-2017 Google. All Rights Reserved.