Package | Description |
---|---|
com.google.javascript.rhino.jstype |
Provides abstractions to represent types in JavaScript.
|
Modifier and Type | Method and Description |
---|---|
TemplateType |
JSTypeRegistry.createTemplateType(String name) |
TemplateType |
JSTypeRegistry.createTemplateTypeWithTransformation(String name,
Node expr) |
TemplateType |
JSTypeRegistry.getObjectElementKey() |
TemplateType |
JSTypeRegistry.getObjectIndexKey() |
TemplateType |
TemplateTypeMap.getTemplateTypeKeyByName(String keyName) |
TemplateType |
ProxyObjectType.toMaybeTemplateType() |
TemplateType |
JSType.toMaybeTemplateType()
Downcasts this to a TemplateType, or returns null if this is not
a function.
|
TemplateType |
TemplateType.toMaybeTemplateType() |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableList<TemplateType> |
TemplateTypeMap.getTemplateKeys()
Returns a list of all template keys.
|
com.google.common.collect.ImmutableList<TemplateType> |
JSTypeRegistry.getTemplateTypesOfBuiltin(String fnName) |
Modifier and Type | Method and Description |
---|---|
JSType |
ModificationVisitor.caseTemplateType(TemplateType type) |
JSType |
TemplateTypeMapReplacer.caseTemplateType(TemplateType type) |
T |
Visitor.caseTemplateType(TemplateType templateType)
Template type's case.
|
JSType |
TemplateTypeMap.getResolvedTemplateType(TemplateType key)
Returns the JSType value associated with the specified template key.
|
boolean |
TemplateTypeMap.hasTemplateKey(TemplateType templateKey)
Returns true if this map contains the specified template key, false
otherwise.
|
boolean |
TemplateTypeMap.hasTemplateType(TemplateType key)
Returns true if there is a JSType value associated with the specified
template key; false otherwise.
|
Modifier and Type | Method and Description |
---|---|
FunctionType |
JSTypeRegistry.createConstructorType(String name,
Node source,
Node parameters,
JSType returnType,
com.google.common.collect.ImmutableList<TemplateType> templateKeys)
Creates a constructor function type.
|
FunctionType |
JSTypeRegistry.createInterfaceType(String name,
Node source,
com.google.common.collect.ImmutableList<TemplateType> templateKeys,
boolean struct)
Creates an interface function type.
|
TemplateTypeMap |
JSTypeRegistry.createTemplateTypeMap(com.google.common.collect.ImmutableList<TemplateType> templateKeys,
com.google.common.collect.ImmutableList<JSType> templateValues)
Creates a template type map from the specified list of template keys and
template value types.
|
TemplatizedType |
JSTypeRegistry.createTemplatizedType(ObjectType baseType,
Map<TemplateType,JSType> templatizedTypes)
Creates a templatized instance of the specified type.
|
void |
JSTypeRegistry.setTemplateTypeNames(List<TemplateType> keys)
Sets the template type name.
|
FunctionBuilder |
FunctionBuilder.withTemplateKeys(com.google.common.collect.ImmutableList<TemplateType> templateKeys)
Set the template name.
|
Copyright © 2009–2023 Google. All rights reserved.