Uses of Class
com.google.javascript.rhino.jstype.FunctionType.Builder
Packages that use FunctionType.Builder
-
Uses of FunctionType.Builder in com.google.javascript.rhino.jstype
Methods in com.google.javascript.rhino.jstype that return FunctionType.BuilderModifier and TypeMethodDescriptionstatic FunctionType.BuilderFunctionType.builder(JSTypeRegistry registry) FunctionType.Builder.forConstructor()Make this a constructor.FunctionType.Builder.forInterface()Make this an interface.FunctionType.Builder.setGoogModuleId(String x) The ID of the goog.module in which this enum was declared.FunctionType.Builder.setIsKnownAmbiguous(boolean x) FunctionType.toBuilder()Copies all the information from another function type.FunctionType.Builder.withClosurePrimitiveId(ClosurePrimitive id) Sets theClosurePrimitivecorresponding to this functionFunctionType.Builder.withConstructorTemplateKeys(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.withInferredReturnType(JSType returnType) Sets an inferred return type.FunctionType.Builder.withIsAbstract(boolean isAbstract) Mark abstract method.Set the name of the function type.FunctionType.Builder.withParameters()Set the function to take zero parameters.FunctionType.Builder.withParameters(List<FunctionType.Parameter> parameters) Set the parameters of the function type.FunctionType.Builder.withPrototypeBasedOn(ObjectType setPrototypeBasedOn) Set the prototype property of a constructor.FunctionType.Builder.withReturnType(JSType returnType) Set the return type.FunctionType.Builder.withReturnType(JSType returnType, boolean inferred) Set the return type and whether it's inferred.FunctionType.Builder.withSourceNode(Node sourceNode) Set the source node of the function type.FunctionType.Builder.withTemplateKeys(com.google.common.collect.ImmutableList<TemplateType> templateKeys) Set the template name.FunctionType.Builder.withTemplateKeys(TemplateType... templateKeys) Set the template name.FunctionType.Builder.withTypeOfThis(JSType typeOfThis) Set the "this" type.