public class Declaration extends Object
See checkValid() for invariants on a declaration's state.
In most cases, only one of the instance fields can be non null.
| Constructor and Description |
|---|
Declaration(JSType simpleType,
Typedef typedef,
NamespaceLit namespaceLit,
EnumType enumType,
DeclaredTypeRegistry functionScope,
RawNominalType nominal,
boolean isTypeVar,
boolean isConstant,
boolean isForwardDeclaration) |
| Modifier and Type | Method and Description |
|---|---|
EnumType |
getEnum() |
DeclaredTypeRegistry |
getFunctionScope() |
Namespace |
getNamespace() |
RawNominalType |
getNominal() |
Typedef |
getTypedef() |
JSType |
getTypeOfSimpleDecl() |
boolean |
isConstant() |
boolean |
isTypeVar() |
String |
toString() |
public Declaration(JSType simpleType, Typedef typedef, NamespaceLit namespaceLit, EnumType enumType, DeclaredTypeRegistry functionScope, RawNominalType nominal, boolean isTypeVar, boolean isConstant, boolean isForwardDeclaration)
public JSType getTypeOfSimpleDecl()
public Typedef getTypedef()
public EnumType getEnum()
public DeclaredTypeRegistry getFunctionScope()
public RawNominalType getNominal()
public boolean isTypeVar()
public boolean isConstant()
public Namespace getNamespace()
Copyright © 2009-2015 Google. All Rights Reserved.