public 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> |
getAllPropsOfClass() |
com.google.common.collect.ImmutableSet<String> |
getAllPropsOfInterface() |
NominalType.RawNominalType |
getId() |
JSType |
getInstanceAsJSType() |
com.google.common.collect.ImmutableSet<NominalType> |
getInstantiatedInterfaces() |
NominalType |
getInstantiatedSuperclass() |
String |
getName() |
JSType |
getPropDeclaredType(String pname) |
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 |
isInterface() |
boolean |
isStruct() |
boolean |
isUninstantiatedGenericType() |
String |
toString() |
public NominalType.RawNominalType getRawNominalType()
public JSType getInstanceAsJSType()
public boolean isStruct()
public boolean isDict()
public boolean isUninstantiatedGenericType()
public String getName()
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 NominalType getInstantiatedSuperclass()
public com.google.common.collect.ImmutableSet<NominalType> getInstantiatedInterfaces()
public boolean hasConstantProp(String pname)
Copyright © 2009–2018 Google. All rights reserved.