/** * Returns true if there is a JSType value associated with the specified * template key; false otherwise. */ public boolean hasTemplateType(TemplateType key) { return getTemplateTypeIndex(key) != -1; }
/** * Returns true if there is a JSType value associated with the specified * template key; false otherwise. */ public boolean hasTemplateType(TemplateType key) { return getTemplateTypeIndex(key) != -1; }
/** * Returns the JSType value associated with the specified template key. If no * JSType value is associated, returns UNKNOWN_TYPE. */ public JSType getResolvedTemplateType(TemplateType key) { int index = getTemplateTypeIndex(key); return (index == -1) ? registry.getNativeType(JSTypeNative.UNKNOWN_TYPE) : resolvedTemplateValues[index]; }
JSType getUnresolvedOriginalTemplateType(TemplateType key) { int index = getTemplateTypeIndex(key); return (index == -1) ? registry.getNativeType(JSTypeNative.UNKNOWN_TYPE) : templateValues.get(index); }
JSType getUnresolvedOriginalTemplateType(TemplateType key) { int index = getTemplateTypeIndex(key); return (index == -1) ? registry.getNativeType(JSTypeNative.UNKNOWN_TYPE) : templateValues.get(index); }
/** * Returns the JSType value associated with the specified template key. If no * JSType value is associated, returns UNKNOWN_TYPE. */ public JSType getResolvedTemplateType(TemplateType key) { TemplateTypeMap resolvedMap = this.addUnknownValues(); int index = resolvedMap.getTemplateTypeIndex(key); return (index == -1) ? registry.getNativeType(JSTypeNative.UNKNOWN_TYPE) : resolvedMap.resolvedTemplateValues.get(index); }