public class TemplateTypeMap
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkEquivalenceHelper(TemplateTypeMap that,
com.google.javascript.rhino.jstype.EquivalenceMethod eqMethod,
com.google.javascript.rhino.jstype.JSType.EqCache eqCache,
JSType.SubtypingMode subtypingMode) |
boolean |
checkEquivalenceHelper(TemplateTypeMap that,
com.google.javascript.rhino.jstype.EquivalenceMethod eqMethod,
JSType.SubtypingMode subtypingMode)
Determines if this map and the specified map have equivalent template
types.
|
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(java.lang.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.
|
java.lang.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(java.lang.String keyName)
public JSType getResolvedTemplateType(TemplateType key)
public boolean checkEquivalenceHelper(TemplateTypeMap that, com.google.javascript.rhino.jstype.EquivalenceMethod eqMethod, JSType.SubtypingMode subtypingMode)
public boolean checkEquivalenceHelper(TemplateTypeMap that, com.google.javascript.rhino.jstype.EquivalenceMethod eqMethod, com.google.javascript.rhino.jstype.JSType.EqCache eqCache, JSType.SubtypingMode subtypingMode)
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2009-2018 Google. All Rights Reserved.