Uses of Class
com.google.javascript.rhino.jstype.TemplateType
-
Packages that use TemplateType Package Description com.google.javascript.rhino.jstype -
-
Uses of TemplateType in com.google.javascript.rhino.jstype
Methods in com.google.javascript.rhino.jstype that return TemplateType Modifier and Type Method Description TemplateTypeJSTypeRegistry. createTemplateType(java.lang.String name)TemplateTypeJSTypeRegistry. createTemplateType(java.lang.String name, JSType bound)TemplateTypeJSTypeRegistry. createTemplateTypeWithTransformation(java.lang.String name, Node expr)TemplateTypeJSTypeRegistry. getAsyncIterableTemplate()Returns the template variable for the AsyncIterable interface.TemplateTypeJSTypeRegistry. getAsyncIteratorValueTemplate()Returns the template variable for the AsyncIterator interface.TemplateTypeJSTypeRegistry. getGeneratorValueTemplate()Return the value template variable for the Generator interface.TemplateTypeJSTypeRegistry. getIterableTemplate()TemplateTypeJSTypeRegistry. getIteratorValueTemplate()Return the value template variable for the Iterator interface.TemplateTypeJSTypeRegistry. getIThenableTemplate()TemplateTypeJSTypeRegistry. getObjectElementKey()TemplateTypeJSTypeRegistry. getObjectIndexKey()TemplateTypeTemplateTypeMap. getTemplateTypeKeyByName(java.lang.String keyName)TemplateTypeJSType. toMaybeTemplateType()Downcasts this to a TemplateType, or returns null if this is not a template type.TemplateTypeProxyObjectType. toMaybeTemplateType()TemplateTypeTemplateType. toMaybeTemplateType()Methods in com.google.javascript.rhino.jstype that return types with arguments of type TemplateType Modifier and Type Method Description 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.com.google.common.collect.ImmutableList<TemplateType>JSType. getTypeParameters()Return, in order, the sequence of type parameters declared for this type.com.google.common.collect.ImmutableList<TemplateType>JSTypeRegistry. maybeGetTemplateTypesOfBuiltin(java.lang.String fnName)Methods in com.google.javascript.rhino.jstype with parameters of type TemplateType Modifier and Type Method Description JSTypeTemplateTypeReplacer. caseTemplateType(TemplateType type)TVisitor. caseTemplateType(TemplateType templateType)Template type's case.TVisitor.WithDefaultCase. caseTemplateType(TemplateType type)JSTypeTemplateTypeMap. 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.BuilderFunctionType.Builder. withTemplateKeys(TemplateType... templateKeys)Set the template name.Method parameters in com.google.javascript.rhino.jstype with type arguments of type TemplateType Modifier and Type Method Description TemplateTypeMapTemplateTypeMap. 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.FunctionTypeJSTypeRegistry. createConstructorType(java.lang.String name, Node source, java.util.List<FunctionType.Parameter> parameters, JSType returnType, com.google.common.collect.ImmutableList<TemplateType> templateKeys, boolean isAbstract)Creates a constructor function type.FunctionTypeJSTypeRegistry. createInterfaceType(java.lang.String name, Node source, com.google.common.collect.ImmutableList<TemplateType> templateKeys, boolean struct)Creates an interface function type.StaticTypedScopeJSTypeRegistry. createScopeWithTemplates(StaticTypedScope scope, java.lang.Iterable<TemplateType> templates)Returns a new scope that includes the given template names for type resolution purposes.TemplatizedTypeJSTypeRegistry. createTemplatizedType(ObjectType baseType, java.util.Map<TemplateType,JSType> templatizedTypes)Creates a templatized instance of the specified type.static TemplateTypeReplacerTemplateTypeReplacer. forInference(JSTypeRegistry registry, java.util.Map<TemplateType,JSType> bindings)Creates a replacer for use duringTypeInference.voidJSTypeRegistry. registerTemplateTypeNamesInScope(java.lang.Iterable<TemplateType> keys, Node scopeRoot)Registers template types on the given scope root.FunctionType.BuilderFunctionType.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.BuilderFunctionType.Builder. withTemplateKeys(com.google.common.collect.ImmutableList<TemplateType> templateKeys)Set the template name.
-