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 |
|---|---|
JSTypeExpression |
copy() |
boolean |
equals(java.lang.Object other) |
JSType |
evaluate(StaticTypedScope<JSType> scope,
TypeIRegistry registry)
Evaluates the type expression into a
JSType object. |
Node |
getRoot() |
java.lang.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.
|
java.lang.String |
toString() |
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(StaticTypedScope<JSType> scope, TypeIRegistry registry)
JSType object.public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic Node getRoot()
public java.lang.String getSourceName()
public java.lang.String toString()
toString in class java.lang.Objectpublic JSTypeExpression copy()
Copyright © 2009-2018 Google. All Rights Reserved.