| 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 |
|---|---|
FunctionTypeI |
JSType.getConstructor() |
FunctionTypeI |
JSType.getOwnerFunction() |
FunctionTypeI |
JSType.getSuperClassConstructor() |
FunctionTypeI |
JSType.toMaybeFunctionType() |
FunctionTypeI |
JSType.withReturnType(TypeI returnType) |
| Modifier and Type | Method and Description |
|---|---|
Collection<FunctionTypeI> |
JSType.getDirectSubTypes() |
| Modifier and Type | Method and Description |
|---|---|
<T extends FunctionTypeI> |
TypeIRegistry.getNativeFunctionType(JSTypeNative typeId) |
| Modifier and Type | Method and Description |
|---|---|
FunctionTypeI |
ObjectTypeI.getConstructor()
Gets this object's constructor, or null if it is a native
object (constructed natively vs.
|
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.
|
FunctionTypeI |
FunctionTypeI.withReturnType(TypeI yieldType)
Returns a function type that is the same as functionType except for the return type, which is
set to be returnType.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
|---|---|
FunctionTypeI |
ObjectType.getSuperClassConstructor() |
FunctionTypeI |
FunctionType.withReturnType(TypeI returnType) |
| Modifier and Type | Method and Description |
|---|---|
Collection<FunctionTypeI> |
JSTypeRegistry.getDirectImplementors(ObjectType interfaceInstance)
Returns a collection of types that directly implement
interfaceInstance. |
Iterable<FunctionTypeI> |
FunctionType.getDirectSubTypes() |
Copyright © 2009-2017 Google. All Rights Reserved.