public class EnumType extends Namespace
enums, namespaces, nominals, otherProps, typedefs
Modifier and Type | Method and Description |
---|---|
boolean |
enumLiteralHasKey(String name) |
JSType |
getDeclaredProp(QualifiedName qname)
Get the declared type of the given property
|
JSType |
getEnumeratedType() |
JSType |
getProp(QualifiedName qname)
Get the inferred type of the given property
|
JSType |
getPropType() |
JSTypeExpression |
getTypeExpr() |
JSTypeExpression |
getTypeExprForErrorReporting() |
boolean |
hasConstantProp(QualifiedName qname)
Return whether this type contains a constant property
|
boolean |
hasProp(QualifiedName qname)
Return whether this type contains a required property
|
boolean |
isResolved() |
static EnumType |
make(String name,
JSTypeExpression typeExpr,
Collection<String> props) |
boolean |
mayHaveProp(QualifiedName qname)
Return whether this type contains any form of property
|
JSType |
toJSType() |
String |
toString() |
addEnum, addNominalType, addProperty, addSubnamespace, addTypedef, addUndeclaredProperty, getEnumType, getNominalType, getPropDeclaredType, getSubnamespace, getTypedef, hasProp, hasSubnamespace, isDefined, withNamedTypes
public static EnumType make(String name, JSTypeExpression typeExpr, Collection<String> props)
public boolean isResolved()
public JSType getEnumeratedType()
public JSType getPropType()
public JSTypeExpression getTypeExpr()
public JSTypeExpression getTypeExprForErrorReporting()
public JSType getProp(QualifiedName qname)
public JSType getDeclaredProp(QualifiedName qname)
public boolean mayHaveProp(QualifiedName qname)
public boolean hasProp(QualifiedName qname)
public boolean hasConstantProp(QualifiedName qname)
public boolean enumLiteralHasKey(String name)
Copyright © 2009–2018 Google. All rights reserved.