| Package | Description |
|---|---|
| com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
| com.google.javascript.rhino |
The core AST from Rhino.
|
| com.google.javascript.rhino.jstype |
Provides abstractions to represent types in JavaScript.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CodingConvention.applyDelegateRelationship(NominalTypeBuilder delegateSuperclass,
NominalTypeBuilder delegateBase,
NominalTypeBuilder delegator,
ObjectTypeI delegateProxy,
FunctionTypeI findDelegate)
In many JS libraries, the function that creates a delegate relationship
also adds properties to the delegator and delegate base.
|
void |
CodingConventions.Proxy.applyDelegateRelationship(NominalTypeBuilder delegateSuperclass,
NominalTypeBuilder delegateBase,
NominalTypeBuilder delegator,
ObjectTypeI delegateProxy,
FunctionTypeI findDelegate) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
FunctionTypeI |
| 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 |
TypeIRegistry.getNativeObjectType(JSTypeNative typeId) |
ObjectTypeI |
ObjectTypeI.getPrototypeObject()
Returns the __proto__ object of this object type, NOT the ".prototype" property.
|
ObjectTypeI |
FunctionTypeI.getPrototypeProperty() |
ObjectTypeI |
ObjectTypeI.getRawType()
If this type is not generic, return as is.
|
ObjectTypeI |
ObjectTypeI.getTopDefiningInterface(java.lang.String propName)
Given an interface and a property, finds a top-most super interface
that has the property defined (including this interface).
|
ObjectTypeI |
NominalTypeBuilder.instance()
Returns the instance type as a TypeI.
|
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 |
NominalTypeBuilder.prototypeOrInstance()
Returns the type of the prototype object (OTI) or instance (NTI).
|
ObjectTypeI |
TypeI.toMaybeObjectType()
If this type is a single object, downcast it to ObjectTypeI.
|
ObjectTypeI |
ObjectTypeI.withoutStrayProperties()
Remove any properties that exist only on this specific instance: stray properties,
or properties whose type has been specialized.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.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)
Instantiates genericType using 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 |
NoResolvedType
An unresolved type that was forward declared.
|
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) |
ObjectTypeI |
ObjectType.withoutStrayProperties() |
| Modifier and Type | Method and Description |
|---|---|
java.util.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-2018 Google. All Rights Reserved.