public final class NominalTypeBuilderOti extends java.lang.Object implements NominalTypeBuilder
| Constructor and Description |
|---|
NominalTypeBuilderOti(FunctionType constructor,
ObjectType instance) |
| Modifier and Type | Method and Description |
|---|---|
FunctionType |
constructor()
Returns the constructor as a TypeI.
|
void |
declareConstructorProperty(java.lang.String name,
TypeI type,
Node defSite)
Declares a static property on the nominal type's constructor.
|
void |
declareInstanceProperty(java.lang.String name,
TypeI type,
Node defSite)
Declares an instance property on the nominal type.
|
void |
declarePrototypeProperty(java.lang.String name,
TypeI type,
Node defSite)
Declares a property on the nominal type's prototype.
|
ObjectType |
instance()
Returns the instance type as a TypeI.
|
ObjectType |
prototypeOrInstance()
Returns the type of the prototype object (OTI) or instance (NTI).
|
NominalTypeBuilder |
superClass()
Returns a NominalTypeBuilder for this type's superclass.
|
public NominalTypeBuilderOti(FunctionType constructor, ObjectType instance)
public void declarePrototypeProperty(java.lang.String name,
TypeI type,
Node defSite)
NominalTypeBuilderdeclarePrototypeProperty in interface NominalTypeBuilderpublic void declareInstanceProperty(java.lang.String name,
TypeI type,
Node defSite)
NominalTypeBuilderdeclareInstanceProperty in interface NominalTypeBuilderpublic void declareConstructorProperty(java.lang.String name,
TypeI type,
Node defSite)
NominalTypeBuilderdeclareConstructorProperty in interface NominalTypeBuilderpublic NominalTypeBuilder superClass()
NominalTypeBuildersuperClass in interface NominalTypeBuilderpublic FunctionType constructor()
NominalTypeBuilderconstructor in interface NominalTypeBuilderpublic ObjectType instance()
NominalTypeBuilderinstance in interface NominalTypeBuilderpublic ObjectType prototypeOrInstance()
NominalTypeBuilderprototypeOrInstance in interface NominalTypeBuilderCopyright © 2009-2018 Google. All Rights Reserved.