| 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) |
void |
CodingConvention.applySingletonGetter(NominalTypeBuilder classType,
FunctionTypeI getterType)
In many JS libraries, the function that adds a singleton getter to a class
adds properties to the class.
|
void |
ClosureCodingConvention.applySingletonGetter(NominalTypeBuilder classType,
FunctionTypeI getterType) |
void |
CodingConventions.Proxy.applySingletonGetter(NominalTypeBuilder classType,
FunctionTypeI getterType) |
void |
ChromeCodingConvention.applySingletonGetter(NominalTypeBuilder classType,
FunctionTypeI getterType) |
| Modifier and Type | Method and Description |
|---|---|
FunctionTypeI |
FunctionTypeI.Builder.build()
Builds a new FunctionTypeI.
|
FunctionTypeI |
NominalTypeBuilder.constructor()
Returns the constructor as a TypeI.
|
FunctionTypeI |
ObjectTypeI.getConstructor()
Gets this object's constructor, or null if it is a native
object (constructed natively vs.
|
FunctionTypeI |
TypeIRegistry.getNativeFunctionType(JSTypeNative typeId) |
FunctionTypeI |
ObjectTypeI.getOwnerFunction()
If this type represents the object in a function's prototype property, return that function.
|
FunctionTypeI |
ObjectTypeI.getSuperClassConstructor() |
FunctionTypeI |
TypeI.toMaybeFunctionType()
Downcasts this to a FunctionTypeI, or returns null if this is not
a function.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Iterable<FunctionTypeI> |
FunctionTypeI.getDirectSubTypes()
Returns an iterable of direct types that are subtypes of this type.
|
| Modifier and Type | Class and Description |
|---|---|
class |
FunctionType
This derived type provides extended information about a function, including its return type and
argument types.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<FunctionTypeI> |
JSTypeRegistry.getDirectImplementors(ObjectType interfaceInstance)
Returns a collection of types that directly implement
interfaceInstance. |
java.lang.Iterable<FunctionTypeI> |
FunctionType.getDirectSubTypes() |
Copyright © 2009-2018 Google. All Rights Reserved.