| Package | Description |
|---|---|
| com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
| com.google.javascript.rhino.jstype |
Provides abstractions to represent types in JavaScript.
|
| Modifier and Type | Method and Description |
|---|---|
FunctionType |
SymbolTable.Symbol.getFunctionType() |
| Modifier and Type | Method and Description |
|---|---|
SymbolTable.Symbol |
SymbolTable.getSymbolDeclaredBy(FunctionType fn)
Gets the symbol for the given constructor or interface.
|
SymbolTable.Symbol |
SymbolTable.getSymbolForInstancesOf(FunctionType fn)
Gets the symbol for the prototype of the given constructor or interface.
|
| Modifier and Type | Class and Description |
|---|---|
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 |
|---|---|
FunctionType |
FunctionBuilder.build()
Construct a new function type.
|
FunctionType |
NominalTypeBuilderOti.constructor() |
FunctionType |
JSTypeRegistry.createConstructorType(java.lang.String name,
Node source,
Node parameters,
JSType returnType,
com.google.common.collect.ImmutableList<TemplateType> templateKeys,
boolean isAbstract)
Creates a constructor function type.
|
FunctionType |
JSTypeRegistry.createFunctionType(JSType returnType,
JSType... parameterTypes)
Creates a function type.
|
FunctionType |
JSTypeRegistry.createFunctionType(JSType returnType,
Node parameters) |
FunctionType |
JSTypeRegistry.createFunctionTypeWithNewReturnType(FunctionType existingFunctionType,
JSType returnType)
Creates a new function type based on an existing function type but
with a new return type.
|
FunctionType |
JSTypeRegistry.createFunctionTypeWithVarArgs(JSType returnType,
JSType... parameterTypes)
Creates a function type.
|
FunctionType |
JSTypeRegistry.createInterfaceType(java.lang.String name,
Node source,
com.google.common.collect.ImmutableList<TemplateType> templateKeys,
boolean struct)
Creates an interface function type.
|
FunctionType |
FunctionType.getBindReturnType(int argsToBind)
Get the return value of calling "bind" on this function with the specified number of arguments.
|
FunctionType |
NoObjectType.getConstructor() |
FunctionType |
UnknownType.getConstructor() |
FunctionType |
PrototypeObjectType.getConstructor() |
abstract FunctionType |
ObjectType.getConstructor()
Gets this object's constructor.
|
FunctionType |
EnumElementType.getConstructor() |
FunctionType |
EnumType.getConstructor() |
FunctionType |
ProxyObjectType.getConstructor() |
FunctionType |
JSTypeRegistry.getNativeFunctionType(JSTypeNative typeId) |
FunctionType |
PrototypeObjectType.getOwnerFunction() |
FunctionType |
ObjectType.getOwnerFunction() |
FunctionType |
ProxyObjectType.getOwnerFunction() |
FunctionType |
ObjectType.getSuperClassConstructor() |
FunctionType |
FunctionType.getSuperClassConstructor()
Given a constructor or an interface type, get its superclass constructor or
null if
none exists. |
FunctionType |
NoObjectType.toMaybeFunctionType() |
FunctionType |
FunctionType.toMaybeFunctionType() |
FunctionType |
JSType.toMaybeFunctionType()
Downcasts this to a FunctionType, or returns null if this is not
a function.
|
FunctionType |
ProxyObjectType.toMaybeFunctionType() |
static FunctionType |
JSType.toMaybeFunctionType(JSType type)
Null-safe version of toMaybeFunctionType().
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<FunctionType> |
FunctionType.checkExtendsLoop()
check if there is a loop in the type extends chain
|
java.util.List<FunctionType> |
FunctionType.checkExtendsLoop(java.util.HashSet<FunctionType> cache,
java.util.List<FunctionType> path) |
| Modifier and Type | Method and Description |
|---|---|
T |
Visitor.caseFunctionType(FunctionType type)
Function type's case.
|
JSType |
ModificationVisitor.caseFunctionType(FunctionType type) |
FunctionBuilder |
FunctionBuilder.copyFromOtherFunction(FunctionType otherType)
Copies all the information from another function type.
|
FunctionType |
JSTypeRegistry.createFunctionTypeWithNewReturnType(FunctionType existingFunctionType,
JSType returnType)
Creates a new function type based on an existing function type but
with a new return type.
|
boolean |
FunctionType.explicitlyImplOrExtInterface(FunctionType interfaceType)
check whether or not this function type has implemented the given interface if this function is
an interface, check whether or not this interface has extended the given interface
|
boolean |
FunctionType.hasEqualCallType(FunctionType otherType) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<FunctionType> |
FunctionType.checkExtendsLoop(java.util.HashSet<FunctionType> cache,
java.util.List<FunctionType> path) |
java.util.List<FunctionType> |
FunctionType.checkExtendsLoop(java.util.HashSet<FunctionType> cache,
java.util.List<FunctionType> path) |
| Constructor and Description |
|---|
NominalTypeBuilderOti(FunctionType constructor,
ObjectType instance) |
Copyright © 2009-2018 Google. All Rights Reserved.