public class Declaration
extends java.lang.Object
See checkValid()
for invariants on a declaration's state.
In most cases, only one of the instance fields can be non null.
Modifier and Type | Field and Description |
---|---|
private DeclaredTypeRegistry |
funScope |
private boolean |
isConstant |
private boolean |
isTypeVar |
private Namespace |
ns |
private JSType |
simpleType |
private Typedef |
typedef |
Constructor and Description |
---|
Declaration(JSType simpleType,
Typedef typedef,
Namespace ns,
DeclaredTypeRegistry funScope,
boolean isTypeVar,
boolean isConstant) |
Modifier and Type | Method and Description |
---|---|
private void |
checkValid() |
EnumType |
getEnum() |
DeclaredTypeRegistry |
getFunctionScope() |
Namespace |
getNamespace() |
RawNominalType |
getNominal() |
Typedef |
getTypedef() |
JSType |
getTypeOfSimpleDecl() |
boolean |
isConstant() |
boolean |
isTypeVar() |
java.lang.String |
toString() |
private JSType simpleType
private Typedef typedef
private Namespace ns
private DeclaredTypeRegistry funScope
private boolean isTypeVar
private boolean isConstant
public Declaration(JSType simpleType, Typedef typedef, Namespace ns, DeclaredTypeRegistry funScope, boolean isTypeVar, boolean isConstant)
private void checkValid()
public JSType getTypeOfSimpleDecl()
public Typedef getTypedef()
public EnumType getEnum()
public DeclaredTypeRegistry getFunctionScope()
public RawNominalType getNominal()
public boolean isTypeVar()
public boolean isConstant()
public Namespace getNamespace()
public java.lang.String toString()
toString
in class java.lang.Object