public interface ObjectTypeI extends TypeI
| Modifier and Type | Method and Description |
|---|---|
FunctionTypeI |
getConstructor()
Gets this object's constructor, or null if it is a native
object (constructed natively vs.
|
Collection<? extends FunctionTypeI> |
getDirectImplementors() |
TypeI |
getLegacyResolvedType()
Only called on instances of NamedType.
|
FunctionTypeI |
getOwnerFunction() |
Node |
getOwnPropertyDefSite(String propertyName) |
JSDocInfo |
getOwnPropertyJSDocInfo(String propertyName) |
Iterable<String> |
getOwnPropertyNames() |
Node |
getPropertyDefSite(String propertyName) |
JSDocInfo |
getPropertyJSDocInfo(String propertyName) |
ObjectTypeI |
getPrototypeObject()
Returns the __proto__ object of this object type, NOT the ".prototype" property.
|
ObjectTypeI |
getRawType() |
FunctionTypeI |
getSuperClassConstructor() |
ObjectTypeI |
getTopDefiningInterface(String propName) |
boolean |
hasOwnProperty(String propertyName) |
boolean |
hasProperty(String propertyName) |
boolean |
isGeneric() |
boolean |
isInstanceType()
Whether this type is an instance object of some constructor.
|
boolean |
isLegacyNamedType()
The old type checker uses NamedType to wrap types (e.g., defined by typedefs), and to represent
unresolved forward declares.
|
boolean |
isUnknownObject() |
ObjectTypeI |
normalizeObjectForCheckAccessControls()
Works around the OTI distinction between prototype-object types and other objects.
|
autobox, autoboxAndGetObject, containsArray, getDisplayName, getEnumeratedTypeOfEnumElement, getGreatestSubtypeWithProperty, getJSDocInfo, getUnionMembers, isBottom, isBoxableScalar, isConstructor, isEnumElement, isEnumObject, isEquivalentTo, isFunctionType, isInstanceofObject, isInterface, isNullable, isNullType, isObjectType, isPrototypeObject, isSomeUnknownType, isStructuralInterface, isSubtypeOf, isTop, isTypeVariable, isUnionType, isUnknownType, isUnresolved, isUnresolvedOrResolvedUnknown, isVoidable, isVoidType, meetWith, restrictByNotNullOrUndefined, toMaybeFunctionType, toMaybeObjectTypeFunctionTypeI getConstructor()
FunctionTypeI getSuperClassConstructor()
ObjectTypeI getPrototypeObject()
boolean isInstanceType()
boolean isGeneric()
ObjectTypeI getRawType()
boolean hasProperty(String propertyName)
boolean hasOwnProperty(String propertyName)
ObjectTypeI normalizeObjectForCheckAccessControls()
boolean isUnknownObject()
boolean isLegacyNamedType()
TypeI getLegacyResolvedType()
Collection<? extends FunctionTypeI> getDirectImplementors()
ObjectTypeI getTopDefiningInterface(String propName)
FunctionTypeI getOwnerFunction()
Copyright © 2009-2017 Google. All Rights Reserved.