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) |
static NominalType |
fromRaw(NominalType.RawNominalType rawType) |
com.google.common.collect.ImmutableSet<String> |
getAllPropsOfClass() |
com.google.common.collect.ImmutableSet<String> |
getAllPropsOfInterface() |
NominalType.RawNominalType |
getId() |
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() |
String |
toString() |
public static NominalType fromRaw(NominalType.RawNominalType rawType)
public NominalType.RawNominalType getRawNominalType()
public boolean isStruct()
public boolean isDict()
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–2015 Google. All rights reserved.