public final class NominalType extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
NominalType.RawNominalType
Represents a class or interface as defined in the code.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
com.google.common.collect.ImmutableSet<String> |
getAllOwnProps() |
com.google.common.collect.ImmutableSet<String> |
getAllPropsOfClass() |
com.google.common.collect.ImmutableSet<String> |
getAllPropsOfInterface() |
Node |
getDefsite() |
NominalType.RawNominalType |
getId() |
JSType |
getInstanceAsJSType() |
com.google.common.collect.ImmutableSet<NominalType> |
getInstantiatedInterfaces() |
NominalType |
getInstantiatedSuperclass() |
String |
getName() |
JSType |
getPropDeclaredType(String pname) |
Node |
getPropDefsite(String pname) |
JSType |
getPrototype() |
NominalType.RawNominalType |
getRawNominalType() |
boolean |
hasConstantProp(String pname) |
int |
hashCode() |
boolean |
isClass() |
boolean |
isDict() |
boolean |
isFinalized()
True iff it has all properties and the RawNominalType is immutable
|
boolean |
isGeneric() |
boolean |
isInterface() |
boolean |
isStruct() |
boolean |
isUninstantiatedGenericType() |
String |
toString() |
public NominalType.RawNominalType getRawNominalType()
public JSType getInstanceAsJSType()
public boolean isStruct()
public boolean isDict()
public boolean isGeneric()
public boolean isUninstantiatedGenericType()
public String getName()
public Node getDefsite()
public NominalType.RawNominalType getId()
public boolean isClass()
public boolean isInterface()
public boolean isFinalized()
public com.google.common.collect.ImmutableSet<String> getAllPropsOfInterface()
public com.google.common.collect.ImmutableSet<String> getAllPropsOfClass()
public com.google.common.collect.ImmutableSet<String> getAllOwnProps()
public NominalType getInstantiatedSuperclass()
public JSType getPrototype()
public com.google.common.collect.ImmutableSet<NominalType> getInstantiatedInterfaces()
public boolean hasConstantProp(String pname)
Copyright © 2009-2015 Google. All Rights Reserved.