Uses of Class
com.google.javascript.rhino.jstype.FunctionType
Packages that use FunctionType
Package
Description
-
Uses of FunctionType in com.google.javascript.jscomp
Methods in com.google.javascript.jscomp that return FunctionTypeMethods in com.google.javascript.jscomp with parameters of type FunctionTypeModifier and TypeMethodDescriptionvoidChromeCodingConvention.applySingletonGetter(NominalTypeBuilder classType, FunctionType getterType) voidClosureCodingConvention.applySingletonGetter(NominalTypeBuilder classType, FunctionType getterType) voidCodingConvention.applySingletonGetter(NominalTypeBuilder classType, FunctionType getterType) In many JS libraries, the function that adds a singleton getter to a class adds properties to the class.voidCodingConventions.Proxy.applySingletonGetter(NominalTypeBuilder classType, FunctionType getterType) SymbolTable.getSymbolDeclaredBy(FunctionType fn) Gets the symbol for the given constructor or interface.SymbolTable.getSymbolForInstancesOf(FunctionType fn) Gets the symbol for the prototype of the given constructor or interface. -
Uses of FunctionType in com.google.javascript.rhino
Methods in com.google.javascript.rhino that return FunctionTypeModifier and TypeMethodDescriptionNominalTypeBuilder.constructor()Returns the constructor as a JSType.Constructors in com.google.javascript.rhino with parameters of type FunctionType -
Uses of FunctionType in com.google.javascript.rhino.jstype
Subclasses of FunctionType in com.google.javascript.rhino.jstypeModifier and TypeClassDescriptionclassThe bottom Object type, representing the subclass of all objects.classBottom type, representing the subclass of any value or object.Methods in com.google.javascript.rhino.jstype that return FunctionTypeModifier and TypeMethodDescriptionJSType.assertFunctionType()Returns this object cast to FunctionType or throws an exception if it isn't a FunctionType.FunctionType.Builder.build()Constructs a new function type.FunctionType.Builder.buildAndResolve()JSTypeRegistry.createConstructorType(String name, Node source, List<FunctionType.Parameter> parameters, JSType returnType, @Nullable com.google.common.collect.ImmutableList<TemplateType> templateKeys, boolean isAbstract) Creates a constructor function type.JSTypeRegistry.createFunctionType(JSType returnType, JSType... parameterTypes) Creates a function type.JSTypeRegistry.createFunctionType(JSType returnType, List<FunctionType.Parameter> parameters) JSTypeRegistry.createFunctionTypeWithNewReturnType(FunctionType existingFunctionType, JSType returnType) Creates a new function type based on an existing function type but with a new return type.JSTypeRegistry.createFunctionTypeWithVarArgs(JSType returnType, JSType... parameterTypes) Creates a function type.final FunctionTypeFunctionType.forgetParameterAndReturnTypes()Create a new constructor with the parameters and return type stripped.final FunctionTypeFunctionType.getBindReturnType(int argsToBind) Get the return value of calling "bind" on this function with the specified number of arguments.final FunctionTypeFunctionType.getCanonicalRepresentation()@Nullable FunctionTypeEnumElementType.getConstructor()@Nullable FunctionTypeEnumType.getConstructor()FunctionType.getConstructor()final @Nullable FunctionTypeNoObjectType.getConstructor()@Nullable FunctionTypeNoResolvedType.getConstructor()abstract FunctionTypeObjectType.getConstructor()Gets this object's constructor.PrototypeObjectType.getConstructor()final @Nullable FunctionTypeProxyObjectType.getConstructor()@Nullable FunctionTypeUnknownType.getConstructor()JSTypeRegistry.getNativeFunctionType(JSTypeNative typeId) ObjectType.getOwnerFunction()PrototypeObjectType.getOwnerFunction()final @Nullable FunctionTypeProxyObjectType.getOwnerFunction()final @Nullable FunctionTypeFunctionType.getSuperClassConstructor()Given a constructor or an interface type, get its superclass constructor ornullif none exists.@Nullable FunctionTypeObjectType.getSuperClassConstructor()FunctionType.toMaybeFunctionType()JSType.toMaybeFunctionType()Downcasts this to a FunctionType, or returns null if this is not a function.static @Nullable FunctionTypeJSType.toMaybeFunctionType(JSType type) Null-safe version of toMaybeFunctionType().final @Nullable FunctionTypeNoObjectType.toMaybeFunctionType()final FunctionTypeProxyObjectType.toMaybeFunctionType()Methods in com.google.javascript.rhino.jstype that return types with arguments of type FunctionTypeModifier and TypeMethodDescriptionfinal List<FunctionType> FunctionType.checkExtendsLoop()check if there is a loop in the type extends chainMethods in com.google.javascript.rhino.jstype with parameters of type FunctionTypeModifier and TypeMethodDescriptionTemplateTypeReplacer.caseFunctionType(FunctionType type) Visitor.caseFunctionType(FunctionType type) Function type's case.Visitor.WithDefaultCase.caseFunctionType(FunctionType type) JSTypeRegistry.createFunctionTypeWithNewReturnType(FunctionType existingFunctionType, JSType returnType) Creates a new function type based on an existing function type but with a new return type.final booleanFunctionType.hasEqualCallType(FunctionType that)