Class TemplateTypeMap
java.lang.Object
com.google.javascript.rhino.jstype.TemplateTypeMap
- All Implemented Interfaces:
Serializable
Manages a mapping from TemplateType to its resolved JSType. Provides utility
methods for cloning/extending the map.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
checkEquivalenceHelper
(TemplateTypeMap that, com.google.javascript.rhino.jstype.EquivalenceMethod eqMethod) Determines if this map and the specified map have equivalent template types.com.google.common.collect.ImmutableList<TemplateType>
Returns a list of all template keys.Returns the JSType value associated with the specified template key.getTemplateTypeKeyByName
(String keyName) boolean
hasTemplateKey
(TemplateType templateKey) Returns true if this map contains the specified template key, false otherwise.boolean
Returns true if there is a JSType value associated with the specified template key; false otherwise.
-
Method Details
-
getTemplateKeys
Returns a list of all template keys. -
hasTemplateKey
Returns true if this map contains the specified template key, false otherwise. -
hasTemplateType
Returns true if there is a JSType value associated with the specified template key; false otherwise. -
getTemplateType
Returns the JSType value associated with the specified template key. If no JSType value is associated, returns UNKNOWN_TYPE. -
getTemplateTypeKeyByName
-
checkEquivalenceHelper
public boolean checkEquivalenceHelper(TemplateTypeMap that, com.google.javascript.rhino.jstype.EquivalenceMethod eqMethod) Determines if this map and the specified map have equivalent template types.
-