| Package | Description |
|---|---|
| com.google.javascript.rhino.jstype |
Provides abstractions to represent types in JavaScript.
|
| Modifier and Type | Method and Description |
|---|---|
static FunctionType.Builder |
FunctionType.builder(JSTypeRegistry registry) |
FunctionType.Builder |
FunctionType.Builder.copyFromOtherFunction(FunctionType otherType)
Copies all the information from another function type.
|
FunctionType.Builder |
FunctionType.Builder.forConstructor()
Make this a constructor.
|
FunctionType.Builder |
FunctionType.Builder.forInterface()
Make this an interface.
|
FunctionType.Builder |
FunctionType.Builder.withClosurePrimitiveId(ClosurePrimitive id)
Sets the
ClosurePrimitive corresponding to this function |
FunctionType.Builder |
FunctionType.Builder.withConstructorTemplateKeys(java.lang.Iterable<TemplateType> constructorOnlyKeys)
Specifies a subset of the template keys that only apply to the constructor, and should be
removed from the instance type.
|
FunctionType.Builder |
FunctionType.Builder.withInferredReturnType(JSType returnType)
Sets an inferred return type.
|
FunctionType.Builder |
FunctionType.Builder.withIsAbstract(boolean isAbstract)
Mark abstract method.
|
FunctionType.Builder |
FunctionType.Builder.withName(java.lang.String name)
Set the name of the function type.
|
FunctionType.Builder |
FunctionType.Builder.withParamsNode(Node parametersNode)
Set the parameters of the function type with a specially-formatted node.
|
FunctionType.Builder |
FunctionType.Builder.withPrototypeBasedOn(ObjectType setPrototypeBasedOn)
Set the prototype property of a constructor.
|
FunctionType.Builder |
FunctionType.Builder.withReturnType(JSType returnType)
Set the return type.
|
FunctionType.Builder |
FunctionType.Builder.withReturnType(JSType returnType,
boolean inferred)
Set the return type and whether it's inferred.
|
FunctionType.Builder |
FunctionType.Builder.withSourceNode(Node sourceNode)
Set the source node of the function type.
|
FunctionType.Builder |
FunctionType.Builder.withTemplateKeys(com.google.common.collect.ImmutableList<TemplateType> templateKeys)
Set the template name.
|
FunctionType.Builder |
FunctionType.Builder.withTemplateKeys(TemplateType... templateKeys)
Set the template name.
|
FunctionType.Builder |
FunctionType.Builder.withTypeOfThis(JSType typeOfThis)
Set the "this" type.
|
Copyright © 2009-2019 Google. All Rights Reserved.