Uses of Class
com.google.javascript.rhino.jstype.TemplateType
Packages that use TemplateType
-
Uses of TemplateType in com.google.javascript.rhino.jstype
Methods in com.google.javascript.rhino.jstype that return TemplateTypeModifier and TypeMethodDescriptionJSTypeRegistry.createTemplateType(String name) JSTypeRegistry.createTemplateType(String name, JSType bound) JSTypeRegistry.createTemplateTypeWithTransformation(String name, Node expr) JSTypeRegistry.getArrayElementKey()Returns the template variable for the element type of Arrays.JSTypeRegistry.getAsyncIterableReturnTemplate()Returns the template variable for the AsyncIterableR interface.JSTypeRegistry.getAsyncIterableValueTemplate()Returns the template variable for the AsyncIterable interface.JSTypeRegistry.getAsyncIteratorReturnTemplate()Returns the template variable for the AsyncIterator interface.JSTypeRegistry.getAsyncIteratorValueTemplate()Returns the template variable for the AsyncIterator interface.JSTypeRegistry.getGeneratorReturnTemplate()Returns the return template variable for the Generator interface.JSTypeRegistry.getGeneratorValueTemplate()Returns the value template variable for the Generator interface.JSTypeRegistry.getIIterableResultValueTemplate()Returns the value template variable for the IIterableResult interface.JSTypeRegistry.getIterableReturnTemplate()Returns the return template variable for the Iterable interface.JSTypeRegistry.getIterableValueTemplate()Returns the value template variable for the Iterable interface.JSTypeRegistry.getIteratorIterableReturnTemplate()Returns the return template variable for the IteratorIterable interface.JSTypeRegistry.getIteratorIterableValueTemplate()Returns the value template variable for the IteratorIterable interface.JSTypeRegistry.getIteratorReturnTemplate()Returns the return template variable for the Iterator interface.JSTypeRegistry.getIteratorValueTemplate()Returns the value template variable for the Iterator interface.JSTypeRegistry.getIThenableTemplate()@Nullable TemplateTypeTemplateTypeMap.getLastTemplateTypeKeyByName(String keyName) Returns the final template key matching this name in the ordered list of template keysJSTypeRegistry.getObjectElementKey()JSTypeRegistry.getObjectIndexKey()JSTypeRegistry.getReadonlyArrayElementKey()Returns the template variable for the element type of ReadonlyArrays.JSTypeRegistry.getReadonlyMapKey()Returns the template variable for the key type of ReadonlyMaps.JSTypeRegistry.getReadonlyMapValue()Returns the template variable for the value type of ReadonlyMaps.JSType.toMaybeTemplateType()Downcasts this to a TemplateType, or returns null if this is not a template type.ProxyObjectType.toMaybeTemplateType()TemplateType.toMaybeTemplateType()Methods in com.google.javascript.rhino.jstype that return types with arguments of type TemplateTypeModifier and TypeMethodDescriptionfinal com.google.common.collect.ImmutableList<TemplateType> FunctionType.getConstructorOnlyTemplateParameters()Returns a list of template types present on the constructor but not on the instance.com.google.common.collect.ImmutableList<TemplateType> TemplateTypeMap.getTemplateKeys()Returns a list of all template keys.final com.google.common.collect.ImmutableList<TemplateType> JSType.getTypeParameters()Return, in order, the sequence of type parameters declared for this type.@Nullable com.google.common.collect.ImmutableList<TemplateType> JSTypeRegistry.maybeGetTemplateTypesOfBuiltin(StaticScope scope, String fnName) Returns an immutable list of template types of the given builtin.Methods in com.google.javascript.rhino.jstype with parameters of type TemplateTypeModifier and TypeMethodDescriptionTemplateTypeReplacer.caseTemplateType(TemplateType type) Visitor.caseTemplateType(TemplateType templateType) Template type's case.Visitor.WithDefaultCase.caseTemplateType(TemplateType type) TemplateTypeMap.getResolvedTemplateType(TemplateType key) Returns the JSType value associated with the specified template key.booleanTemplateTypeMap.hasTemplateKey(TemplateType templateKey) Returns true if this map contains the specified template key, false otherwise.booleanTemplateTypeMap.hasTemplateType(TemplateType key) Returns true if there is a JSType value associated with the specified template key; false otherwise.FunctionType.Builder.withTemplateKeys(TemplateType... templateKeys) Set the template name.Method parameters in com.google.javascript.rhino.jstype with type arguments of type TemplateTypeModifier and TypeMethodDescriptionTemplateTypeMap.copyWithExtension(com.google.common.collect.ImmutableList<TemplateType> keys, com.google.common.collect.ImmutableList<JSType> values) Create a new map in which the keys and values have been extended bykeysandvaluesrespectively.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.createScopeWithTemplates(StaticTypedScope scope, Iterable<TemplateType> templates) Returns a new scope that includes the given template names for type resolution purposes.JSTypeRegistry.createTemplatizedType(ObjectType baseType, Map<TemplateType, JSType> templatizedTypes) Creates a templatized instance of the specified type.static TemplateTypeReplacerTemplateTypeReplacer.forInference(JSTypeRegistry registry, Map<TemplateType, JSType> bindings) Creates a replacer for use duringTypeInference.voidJSTypeRegistry.registerTemplateTypeNamesInScope(Iterable<TemplateType> keys, Node scopeRoot) Registers template types on the given scope root.FunctionType.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.withTemplateKeys(com.google.common.collect.ImmutableList<TemplateType> templateKeys) Set the template name.