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,
Namespace ns,
DeclaredTypeRegistry funScope,
boolean isTypeVar,
boolean isConstant) |
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, Namespace ns, DeclaredTypeRegistry funScope, boolean isTypeVar, boolean isConstant)
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–2023 Google. All rights reserved.