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,
NominalType.RawNominalType nominal,
boolean isFormal,
boolean isTypeVar,
boolean isConstant,
boolean isFromExterns,
boolean isForwardDeclaration) |
| Modifier and Type | Method and Description |
|---|---|
EnumType |
getEnum() |
DeclaredTypeRegistry |
getFunctionScope() |
Namespace |
getNamespace() |
NamespaceLit |
getNamespaceLit() |
NominalType.RawNominalType |
getNominal() |
Typedef |
getTypedef() |
JSType |
getTypeOfSimpleDecl() |
boolean |
isConstant() |
boolean |
isFormal() |
boolean |
isForwardDeclaration() |
boolean |
isFromExterns() |
boolean |
isTypeVar() |
String |
toString() |
public Declaration(JSType simpleType, Typedef typedef, NamespaceLit namespaceLit, EnumType enumType, DeclaredTypeRegistry functionScope, NominalType.RawNominalType nominal, boolean isFormal, boolean isTypeVar, boolean isConstant, boolean isFromExterns, boolean isForwardDeclaration)
public JSType getTypeOfSimpleDecl()
public Typedef getTypedef()
public NamespaceLit getNamespaceLit()
public EnumType getEnum()
public DeclaredTypeRegistry getFunctionScope()
public NominalType.RawNominalType getNominal()
public boolean isFormal()
public boolean isTypeVar()
public boolean isConstant()
public boolean isFromExterns()
public boolean isForwardDeclaration()
public Namespace getNamespace()
Copyright © 2009-2015 Google. All Rights Reserved.