| Package | Description |
|---|---|
| com.google.javascript.jscomp.newtypes | |
| com.google.javascript.rhino |
The core AST from Rhino.
|
| com.google.javascript.rhino.jstype |
Provides abstractions to represent types in JavaScript.
|
| Modifier and Type | Class and Description |
|---|---|
class |
JSType |
| Modifier and Type | Method and Description |
|---|---|
ObjectTypeI |
JSType.autoboxAndGetObject() |
ObjectTypeI |
JSType.getInstanceType() |
ObjectTypeI |
JSType.getPrototypeProperty() |
ObjectTypeI |
JSType.getRawType() |
ObjectTypeI |
JSType.instantiateGenericsWithUnknown() |
ObjectTypeI |
JSType.normalizeObjectForCheckAccessControls() |
ObjectTypeI |
JSType.toMaybeObjectType() |
| Modifier and Type | Method and Description |
|---|---|
Collection<ObjectTypeI> |
JSType.getAncestorInterfaces() |
| Modifier and Type | Method and Description |
|---|---|
<T extends ObjectTypeI> |
TypeIRegistry.getNativeObjectType(JSTypeNative typeId) |
| Modifier and Type | Method and Description |
|---|---|
ObjectTypeI |
TypeI.autoboxAndGetObject() |
ObjectTypeI |
FunctionTypeI.getInstanceType()
Returns a type representing an instance of
this constructor,
or null if this is not a constructor. |
ObjectTypeI |
ObjectTypeI.getPrototypeObject()
Returns the __proto__ object of this object type, NOT the ".prototype" property.
|
ObjectTypeI |
FunctionTypeI.getPrototypeProperty() |
ObjectTypeI |
ObjectTypeI.getRawType() |
ObjectTypeI |
ObjectTypeI.getTopDefiningInterface(String propName)
Given an interface and a property, finds a top-most super interface
that has the property defined (including this interface).
|
ObjectTypeI |
ObjectTypeI.instantiateGenericsWithUnknown()
When this type represents an instance of a generic class/interface Foo, return an instance
of Foo with type parameters mapped to the unknown type.
|
ObjectTypeI |
ObjectTypeI.normalizeObjectForCheckAccessControls()
Works around the OTI distinction between prototype-object types and other objects.
|
ObjectTypeI |
TypeI.toMaybeObjectType()
If this type is a single object, downcast it to ObjectTypeI.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<ObjectTypeI> |
FunctionTypeI.getAncestorInterfaces() |
| Modifier and Type | Method and Description |
|---|---|
TypeI |
TypeIRegistry.buildRecordTypeFromObject(ObjectTypeI obj) |
TypeI |
TypeIRegistry.instantiateGenericType(ObjectTypeI genericType,
com.google.common.collect.ImmutableList<? extends TypeI> typeArgs) |
| Modifier and Type | Class and Description |
|---|---|
class |
EnumElementType
The type of individual elements of an enum type
(see
EnumType). |
class |
EnumType
An enum type representing a branded collection of elements.
|
class |
FunctionType
This derived type provides extended information about a function, including
its return type and argument types.
|
class |
NamedType
A
NamedType is a named reference to some other type. |
class |
NoObjectType
The bottom Object type, representing the subclass of all objects.
|
class |
NoType
Bottom type, representing the subclass of any value or object.
|
class |
ObjectType
Object type.
|
class |
PrototypeObjectType
The object type represents instances of JavaScript objects such as
Object, Date, Function. |
class |
ProxyObjectType
An object type which uses composition to delegate all calls.
|
class |
RecordType
A record (structural) type.
|
class |
TemplateType |
class |
TemplatizedType
An object type with declared template types, such as
Array<string>. |
class |
UnknownType
The
Unknown type. |
| Modifier and Type | Method and Description |
|---|---|
ObjectTypeI |
ObjectType.instantiateGenericsWithUnknown() |
ObjectTypeI |
JSTypeRegistry.instantiateGenericsWithUnknown(ObjectType obj) |
| Modifier and Type | Method and Description |
|---|---|
Collection<ObjectTypeI> |
FunctionType.getAncestorInterfaces() |
| Modifier and Type | Method and Description |
|---|---|
JSType |
JSTypeRegistry.buildRecordTypeFromObject(ObjectTypeI obj) |
TypeI |
JSTypeRegistry.instantiateGenericType(ObjectTypeI genericType,
com.google.common.collect.ImmutableList<? extends TypeI> typeArgs) |
Copyright © 2009-2017 Google. All Rights Reserved.