public static class NominalType.RawNominalType extends Namespace
enums, namespaces, nominals, otherProps, scopes, typedefs| Modifier and Type | Method and Description |
|---|---|
void |
addClassProperty(String pname,
Node defSite,
JSType type,
boolean isConstant)
Add a new non-optional declared property to instances of this class
|
void |
addCtorProperty(String pname,
Node defSite,
JSType type,
boolean isConstant)
Add a new non-optional declared property to this class's constructor
|
boolean |
addInterfaces(com.google.common.collect.ImmutableSet<NominalType> interfaces) |
void |
addProtoProperty(String pname,
Node defSite,
JSType type,
boolean isConstant)
Add a new non-optional declared prototype property to this class
|
boolean |
addSuperClass(NominalType superClass) |
void |
addUndeclaredClassProperty(String pname,
Node defSite)
Add a new undeclared property to instances of this class
|
void |
addUndeclaredCtorProperty(String pname,
Node defSite)
Add a new undeclared property to this class's constructor
|
void |
addUndeclaredProtoProperty(String pname,
Node defSite)
Add a new undeclared prototype property to this class
|
NominalType.RawNominalType |
finalizeNominalType() |
Set<String> |
getAllOwnProps() |
NominalType |
getAsNominalType() |
JSType |
getCtorPropDeclaredType(String pname) |
JSType |
getInstanceAsJSType() |
JSType |
getInstanceAsNullableJSType() |
JSType |
getInstancePropDeclaredType(String pname) |
com.google.common.collect.ImmutableSet<NominalType> |
getInterfaces() |
String |
getName() |
NominalType |
getSuperClass() |
boolean |
hasCtorProp(String pname) |
boolean |
isClass() |
boolean |
isDict() |
boolean |
isInterface() |
boolean |
isStruct() |
static NominalType.RawNominalType |
makeDictClass(Node defSite,
QualifiedName name,
com.google.common.collect.ImmutableList<String> typeParameters) |
static NominalType.RawNominalType |
makeInterface(Node defSite,
QualifiedName name,
com.google.common.collect.ImmutableList<String> typeParameters) |
static NominalType.RawNominalType |
makeStructClass(Node defSite,
QualifiedName name,
com.google.common.collect.ImmutableList<String> typeParameters) |
static NominalType.RawNominalType |
makeUnrestrictedClass(Node defSite,
QualifiedName name,
com.google.common.collect.ImmutableList<String> typeParameters) |
boolean |
mayHaveOwnProp(String pname) |
boolean |
mayHaveProp(String pname) |
void |
setCtorFunction(FunctionType ctorFn,
NominalType builtinFunction) |
JSType |
toJSType() |
String |
toString() |
addEnum, addNominalType, addProperty, addScope, addSubnamespace, addTypedef, addUndeclaredProperty, getEnumType, getNominalType, getPropDeclaredType, getScope, getSubnamespace, getTypedef, hasProp, hasSubnamespace, isDefined, withNamedTypespublic static NominalType.RawNominalType makeUnrestrictedClass(Node defSite, QualifiedName name, com.google.common.collect.ImmutableList<String> typeParameters)
public static NominalType.RawNominalType makeStructClass(Node defSite, QualifiedName name, com.google.common.collect.ImmutableList<String> typeParameters)
public static NominalType.RawNominalType makeDictClass(Node defSite, QualifiedName name, com.google.common.collect.ImmutableList<String> typeParameters)
public static NominalType.RawNominalType makeInterface(Node defSite, QualifiedName name, com.google.common.collect.ImmutableList<String> typeParameters)
public String getName()
public boolean isClass()
public boolean isInterface()
public boolean isStruct()
public boolean isDict()
public void setCtorFunction(FunctionType ctorFn, NominalType builtinFunction)
public boolean addSuperClass(NominalType superClass)
public boolean addInterfaces(com.google.common.collect.ImmutableSet<NominalType> interfaces)
public NominalType getSuperClass()
public com.google.common.collect.ImmutableSet<NominalType> getInterfaces()
public boolean mayHaveOwnProp(String pname)
public boolean mayHaveProp(String pname)
public void addClassProperty(String pname, Node defSite, JSType type, boolean isConstant)
public void addUndeclaredClassProperty(String pname, Node defSite)
public void addProtoProperty(String pname, Node defSite, JSType type, boolean isConstant)
public void addUndeclaredProtoProperty(String pname, Node defSite)
public boolean hasCtorProp(String pname)
public void addCtorProperty(String pname, Node defSite, JSType type, boolean isConstant)
public void addUndeclaredCtorProperty(String pname, Node defSite)
public NominalType.RawNominalType finalizeNominalType()
public NominalType getAsNominalType()
public JSType getInstanceAsJSType()
public JSType getInstanceAsNullableJSType()
Copyright © 2009-2015 Google. All Rights Reserved.