public interface NominalTypeBuilder
| Modifier and Type | Method and Description |
|---|---|
FunctionType |
constructor()
Returns the constructor as a JSType.
|
void |
declareConstructorProperty(java.lang.String name,
JSType type,
Node defSite)
Declares a static property on the nominal type's constructor.
|
void |
declareInstanceProperty(java.lang.String name,
JSType type,
Node defSite)
Declares an instance property on the nominal type.
|
void |
declarePrototypeProperty(java.lang.String name,
JSType type,
Node defSite)
Declares a property on the nominal type's prototype.
|
ObjectType |
instance()
Returns the instance type as a JSType.
|
ObjectType |
prototypeOrInstance()
Returns the type of the prototype object (OTI) or instance (NTI).
|
NominalTypeBuilder |
superClass()
Returns a NominalTypeBuilder for this type's superclass.
|
void declareConstructorProperty(java.lang.String name,
JSType type,
Node defSite)
void declareInstanceProperty(java.lang.String name,
JSType type,
Node defSite)
void declarePrototypeProperty(java.lang.String name,
JSType type,
Node defSite)
NominalTypeBuilder superClass()
FunctionType constructor()
ObjectType instance()
ObjectType prototypeOrInstance()
Copyright © 2009-2018 Google. All Rights Reserved.