public class TemplateTypeMap extends Object implements Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
checkEquivalenceHelper(TemplateTypeMap that,
com.google.javascript.rhino.jstype.EquivalenceMethod eqMethod)
Determines if this map and the specified map have equivalent template
types.
|
boolean |
checkEquivalenceHelper(TemplateTypeMap that,
com.google.javascript.rhino.jstype.EquivalenceMethod eqMethod,
com.google.javascript.rhino.jstype.JSType.EqCache eqCache) |
JSType |
getResolvedTemplateType(TemplateType key)
Returns the JSType value associated with the specified template key.
|
com.google.common.collect.ImmutableList<TemplateType> |
getTemplateKeys()
Returns a list of all template keys.
|
TemplateType |
getTemplateTypeKeyByName(String keyName) |
boolean |
hasTemplateKey(TemplateType templateKey)
Returns true if this map contains the specified template key, false
otherwise.
|
boolean |
hasTemplateType(TemplateType key)
Returns true if there is a JSType value associated with the specified
template key; false otherwise.
|
boolean |
isEmpty()
Returns true if the map is empty; false otherwise.
|
String |
toString() |
public boolean isEmpty()
public com.google.common.collect.ImmutableList<TemplateType> getTemplateKeys()
public boolean hasTemplateKey(TemplateType templateKey)
public boolean hasTemplateType(TemplateType key)
public TemplateType getTemplateTypeKeyByName(String keyName)
public JSType getResolvedTemplateType(TemplateType key)
public boolean checkEquivalenceHelper(TemplateTypeMap that, com.google.javascript.rhino.jstype.EquivalenceMethod eqMethod)
public boolean checkEquivalenceHelper(TemplateTypeMap that, com.google.javascript.rhino.jstype.EquivalenceMethod eqMethod, com.google.javascript.rhino.jstype.JSType.EqCache eqCache)
Copyright © 2009–2023 Google. All rights reserved.