Uses of Class
com.google.javascript.rhino.jstype.JSType
-
Packages that use JSType Package Description com.google.javascript.jscomp com.google.javascript.jscomp.type com.google.javascript.rhino com.google.javascript.rhino.jstype -
-
Uses of JSType in com.google.javascript.jscomp
Methods in com.google.javascript.jscomp that return JSType Modifier and Type Method Description abstract JSTypeTypeMismatch. getFound()The RHS type; the type of the assignment target.JSTypeTypedScope. getNamespaceOrTypedefType(java.lang.String typeName)abstract JSTypeTypeMismatch. getRequired()The LHS type; the type being assigned.JSTypeTypedVar. getType()Gets this variable's type.JSTypeSymbolTable.SymbolScope. getTypeOfThis()JSTypeTypedScope. getTypeOfThis()Gets the type ofthisin the current scope.Methods in com.google.javascript.jscomp with parameters of type JSType Modifier and Type Method Description static com.google.common.collect.ImmutableList<DestructuredTarget>DestructuredTarget. createAllNonEmptyTargetsInPattern(JSTypeRegistry registry, JSType patternType, Node pattern)Returns all the targets directly in the given pattern, except for EMPTY nodesstatic TypeMismatchTypeMismatch. createForTesting(JSType found, JSType required)java.util.List<SymbolTable.Symbol>SymbolTable. getAllSymbolsForType(JSType type)Gets all symbols associated with the given type.booleanInvalidatingTypes. isInvalidating(JSType type)TypeMatchingStrategy.MatchResultTypeMatchingStrategy. match(JSType templateType, JSType type)Method parameters in com.google.javascript.jscomp with type arguments of type JSType Modifier and Type Method Description static com.google.common.collect.ImmutableList<DestructuredTarget>DestructuredTarget. createAllNonEmptyTargetsInPattern(JSTypeRegistry registry, com.google.common.base.Supplier<JSType> patternType, Node pattern)Returns all the targets directly in the given pattern, except for EMPTY nodesInvalidatingTypes.BuilderInvalidatingTypes.Builder. writeInvalidationsInto(com.google.common.collect.Multimap<JSType,Node> invalidationMap) -
Uses of JSType in com.google.javascript.jscomp.type
Methods in com.google.javascript.jscomp.type that return JSType Modifier and Type Method Description protected JSTypeChainableReverseAbstractInterpreter. getTypeIfRefinable(Node node, FlowScope scope)Returns the type of a node in the given scope if the node corresponds to a name whose type is capable of being refined.Methods in com.google.javascript.jscomp.type with parameters of type JSType Modifier and Type Method Description protected FlowScopeChainableReverseAbstractInterpreter. declareNameInScope(FlowScope scope, Node node, JSType type)Declares a refined type inscopefor the name represented bynode.FlowScopeFlowScope. inferQualifiedSlot(Node node, java.lang.String symbol, JSType bottomType, JSType inferredType, boolean declare)Returns a flow scope with the type of the givensymbolupdated toinferredType.FlowScopeFlowScope. inferSlotType(java.lang.String symbol, JSType type)Returns a flow scope with the type of the givensymbolupdated totype. -
Uses of JSType in com.google.javascript.rhino
Methods in com.google.javascript.rhino that return JSType Modifier and Type Method Description JSTypeJSTypeExpression. evaluate(StaticTypedScope scope, JSTypeRegistry registry)Evaluates the type expression into aJSTypeobject.JSTypeNode. getJSType()Returns the compiled inferred type on this node.JSTypeNode. getJSTypeBeforeCast()Returns the type of this node before casting.JSTypeNode. getJSTypeRequired()Returns the compiled inferred type on this node, or throws an NPE if there isn't one.JSTypeNode. getTypedefTypeProp()If this node represents a typedef declaration, the associated JSTypeMethods in com.google.javascript.rhino with parameters of type JSType Modifier and Type Method Description voidNominalTypeBuilder. declareConstructorProperty(java.lang.String name, JSType type, Node defSite)Declares a static property on the nominal type's constructor.voidNominalTypeBuilder. declareInstanceProperty(java.lang.String name, JSType type, Node defSite)Declares an instance property on the nominal type.voidNominalTypeBuilder. declarePrototypeProperty(java.lang.String name, JSType type, Node defSite)Declares a property on the nominal type's prototype.NodeNode. setJSType(JSType jstype)voidNode. setJSTypeBeforeCast(JSType type)Sets the type of this node before casting.voidNode. setTypedefTypeProp(JSType type)If this node represents a typedef declaration, the associated JSType -
Uses of JSType in com.google.javascript.rhino.jstype
Subclasses of JSType in com.google.javascript.rhino.jstype Modifier and Type Class Description classAllTypeAll type, representing all values.classBigIntTypeBigInt type.classBooleanTypeBoolean type.classEnumElementTypeThe type of individual elements of an enum type (seeEnumType).classEnumTypeAn enum type representing a branded collection of elements.classFunctionTypeThis derived type provides extended information about a function, including its return type and argument types.classNamedTypeANamedTypeis a named reference to some other type.classNoObjectTypeThe bottom Object type, representing the subclass of all objects.classNoResolvedTypeAn unresolved type that was forward declared.classNoTypeBottom type, representing the subclass of any value or object.classNullTypeNull type.classNumberTypeNumber type.classObjectTypeObject type.classPrototypeObjectTypeThe object type represents instances of JavaScript objects such asObject,Date,Function.classProxyObjectTypeAn object type which uses composition to delegate all calls.classRecordTypeA record (structural) type.classStringTypeString type.classSymbolTypeSymbol type.classTemplateTypeA placeholder type, used as keys inTemplateTypeMaps.classTemplatizedTypeAn object type with declared template types, such asArray<string>.classUnionTypeA type that may be any one of a set of types, and thus has the intersection of the properties of those types.classUnknownTypeTheUnknowntype.classVoidTypeVoid type whose only element is theundefinedvalue.Fields in com.google.javascript.rhino.jstype declared as JSType Modifier and Type Field Description JSTypeJSType.TypePair. typeAJSTypeJSType.TypePair. typeBMethods in com.google.javascript.rhino.jstype that return JSType Modifier and Type Method Description JSTypeJSType. autobox()Dereferences a type for property access.JSTypeUnionType. autobox()JSTypeBigIntType. autoboxesTo()JSTypeBooleanType. autoboxesTo()JSTypeEnumElementType. autoboxesTo()JSTypeJSType. autoboxesTo()Turn a scalar type to the corresponding object type.JSTypeNumberType. autoboxesTo()JSTypeStringType. autoboxesTo()JSTypeSymbolType. autoboxesTo()JSTypeRecordTypeBuilder. build()Creates a record.JSTypeUnionType.Builder. build()Returns a type, not necessarily aUnionType, that represents the union of the inputs.JSTypeJSTypeRegistry. buildRecordTypeFromObject(ObjectType objType)JSTypeTemplateTypeReplacer. caseAllType()JSTypeTemplateTypeReplacer. caseBigIntType()JSTypeTemplateTypeReplacer. caseBooleanType()JSTypeTemplateTypeReplacer. caseEnumElementType(EnumElementType type)JSTypeTemplateTypeReplacer. caseFunctionType(FunctionType type)JSTypeTemplateTypeReplacer. caseNamedType(NamedType type)JSTypeTemplateTypeReplacer. caseNoObjectType()JSTypeTemplateTypeReplacer. caseNoType(NoType type)JSTypeTemplateTypeReplacer. caseNullType()JSTypeTemplateTypeReplacer. caseNumberType()JSTypeTemplateTypeReplacer. caseObjectType(ObjectType objType)JSTypeTemplateTypeReplacer. caseProxyObjectType(ProxyObjectType type)JSTypeTemplateTypeReplacer. caseStringType()JSTypeTemplateTypeReplacer. caseSymbolType()JSTypeTemplateTypeReplacer. caseTemplateType(TemplateType type)JSTypeTemplateTypeReplacer. caseTemplatizedType(TemplatizedType type)JSTypeTemplateTypeReplacer. caseUnionType(UnionType type)JSTypeTemplateTypeReplacer. caseUnknownType()JSTypeTemplateTypeReplacer. caseVoidType()JSTypeJSType. collapseUnion()Gets the least supertype of this that's not a union.JSTypeProxyObjectType. collapseUnion()JSTypeUnionType. collapseUnion()JSTypeJSTypeRegistry. createFunctionTypeWithInstanceType(ObjectType instanceType, JSType returnType, java.util.List<JSType> parameterTypes)Creates a function type in whichthisrefers to an object instance.JSTypeJSTypeRegistry. createNullableType(JSType type)Creates a type representing nullable values of the given type.JSTypeJSTypeRegistry. createOptionalNullableType(JSType type)Creates a nullable and undefine-able value of the given type.JSTypeJSTypeRegistry. createOptionalType(JSType type)Creates a type representing optional values of the given type.JSTypeJSTypeRegistry. createRecordType(java.util.Map<java.lang.String,? extends JSType> props)JSTypeJSTypeRegistry. createTypeFromCommentNode(Node n)JSTypeJSTypeRegistry. createTypeFromCommentNode(Node n, java.lang.String sourceName, StaticTypedScope scope)Creates a JSType from the nodes representing a type.JSTypeJSTypeRegistry. createUnionType(JSType... variants)Creates a union type whose variants are the arguments.JSTypeJSTypeRegistry. createUnionType(JSTypeNative... variants)Creates a union type whose variants are the built-in types specified by the arguments.JSTypeJSTypeRegistry. createUnionType(java.util.List<? extends JSType> variants)JSTypeJSTypeRegistry. evaluateTypeExpression(JSTypeExpression expr, StaticTypedScope scope)JSTypeJSTypeRegistry. evaluateTypeExpressionInGlobalScope(JSTypeExpression expr)JSTypeJSType. findPropertyType(java.lang.String propertyName)Coerces this type to an Object type, then gets the type of the property whose name is given.protected JSTypeEnumElementType. findPropertyTypeWithoutConsideringTemplateTypes(java.lang.String propertyName)protected JSTypeJSType. findPropertyTypeWithoutConsideringTemplateTypes(java.lang.String propertyName)Looks up a property on this type, but without properly replacing any templates in the result.protected JSTypeObjectType. findPropertyTypeWithoutConsideringTemplateTypes(java.lang.String propertyName)protected JSTypeProxyObjectType. findPropertyTypeWithoutConsideringTemplateTypes(java.lang.String propertyName)protected JSTypeUnionType. findPropertyTypeWithoutConsideringTemplateTypes(java.lang.String propertyName)JSTypeTemplateType. getBound()JSTypeJSType. getEnumeratedTypeOfEnumElement()JSTypeEnumType. getEnumeratedTypeOfEnumObject()Gets the enumerated type.JSTypeObjectType. getEnumeratedTypeOfEnumObject()JSTypeJSTypeRegistry. getGlobalType(java.lang.String jsTypeName)JSTypeJSType. getGreatestSubtype(JSType that)Gets the greatest subtype ofthisandthat.JSTypeJSType. getGreatestSubtypeWithProperty(java.lang.String propName)JSTypeJSTypeRegistry. getGreatestSubtypeWithProperty(JSType type, java.lang.String propertyName)Gets the greatest subtype of thetypethat has a propertypropertyNamedefined on it.abstract JSTypeFunctionType.Parameter. getJSType()JSTypeJSType. getLeastSupertype(JSType that)Gets the least supertype ofthisandthat.JSTypeUnionType. getLeastSupertype(JSType that)JSTypeJSTypeRegistry. getNativeType(JSTypeNative typeId)JSTypeEnumElementType. getPrimitiveType()Gets the primitive type of this enum element.JSTypeFunctionType. getPropertyType(java.lang.String name)JSTypeObjectType. getPropertyType(java.lang.String propertyName)Gets the property type of the property whose name is given.JSTypeTemplatizedType. getPropertyType(java.lang.String propertyName)JSTypeNamedType. getReferencedType()Returns the type to which this refers (which is unknown if unresolved).JSTypeTemplateTypeMap. getResolvedTemplateType(TemplateType key)Returns the JSType value associated with the specified template key.JSTypeJSType. getRestrictedTypeGivenOutcome(Outcome outcome)Computes the restricted type of this type knowing that theToBooleanpredicate has a specific value.JSTypeUnionType. getRestrictedTypeGivenOutcome(Outcome outcome)JSTypeUnionType. getRestrictedUnion(JSType type)Returns a more restricted union type thanthisone, in which all subtypes oftypehave been removed.JSTypeFunctionType. getReturnType()JSTypeJSTypeRegistry. getType(StaticTypedScope scope, java.lang.String jsTypeName, java.lang.String sourceName, int lineno, int charno)Looks up a type by name.JSTypeJSTypeRegistry. getType(StaticScope scope, java.lang.String jsTypeName)Looks up a native type by name.JSTypeProperty. getType()JSTypeSimpleSlot. getType()JSTypeStaticTypedSlot. getType()Returns the type information, if any, for this slot.JSTypeFunctionType. getTypeOfThis()Gets the type ofthisin this function.JSTypeObjectType. getTypeOfThis()JSTypeProxyObjectType. getTypeOfThis()JSTypeStaticTypedScope. getTypeOfThis()Returns the expected type ofthisin the current scope.default JSTypeStaticTypedScope. lookupQualifiedName(QualifiedName qname)Looks up a given qualified name in the scope.JSTypeJSType. resolve(ErrorReporter reporter)Resolve this type in the given scope.JSTypeJSType. restrictByNotNull()If this is a union type, returns a union type that does not include the null type.JSTypeNullType. restrictByNotNull()JSTypeUnionType. restrictByNotNull()JSTypeJSType. restrictByNotNullOrUndefined()If this is a union type, returns a union type that does not include the null or undefined type.JSTypeNullType. restrictByNotNullOrUndefined()JSTypeUnionType. restrictByNotNullOrUndefined()JSTypeVoidType. restrictByNotNullOrUndefined()JSTypeJSType. restrictByNotUndefined()If this is a union type, returns a union type that does not include the undefined type.JSTypeUnionType. restrictByNotUndefined()JSTypeVoidType. restrictByNotUndefined()JSTypeJSType. unboxesTo()Turn an object type to its corresponding scalar type.JSTypePrototypeObjectType. unboxesTo()Methods in com.google.javascript.rhino.jstype that return types with arguments of type JSType Modifier and Type Method Description com.google.common.collect.ImmutableList<JSType>UnionType. getAlternates()Gets the alternate types of this union type.java.util.Map<java.lang.String,JSType>FunctionType. getPropertyTypeMap()get the map of properties to types covered in a function typejava.util.Map<java.lang.String,JSType>ObjectType. getPropertyTypeMap()get the map of properties to types covered in an object typecom.google.common.collect.ImmutableList<JSType>NamedType. getTemplateTypes()com.google.common.collect.ImmutableList<JSType>NoResolvedType. getTemplateTypes()com.google.common.collect.ImmutableList<JSType>ObjectType. getTemplateTypes()Gets the declared default element type.com.google.common.collect.ImmutableList<JSType>ProxyObjectType. getTemplateTypes()com.google.common.collect.ImmutableList<JSType>TemplatizedType. getTemplateTypes()com.google.common.collect.ImmutableList<JSType>TemplateTypeMap. getTemplateValues()java.lang.Iterable<JSType>JSType. getUnionMembers()Methods in com.google.javascript.rhino.jstype with parameters of type JSType Modifier and Type Method Description UnionType.BuilderUnionType.Builder. addAlternate(JSType alternate)Adds an alternate to the union type under construction.booleanFunctionParamBuilder. addOptionalParams(JSType... types)Add optional parameters of the given type to the end of the param list.RecordTypeBuilderRecordTypeBuilder. addProperty(java.lang.String name, JSType type, Node propertyNode)Adds a property with the given name and type to the record type.booleanFunctionParamBuilder. addRequiredParams(JSType... types)Add parameters of the given type to the end of the param list.booleanFunctionParamBuilder. addVarArgs(JSType type)Add variable arguments to the end of the parameter list.static booleanJSType. areIdentical(JSType a, JSType b)booleanJSType. canCastTo(JSType that)Tests whether values ofthistype can be safely assigned to values ofthattype.JSTypeRegistry.PropDefinitionKindJSTypeRegistry. canPropertyBeDefined(JSType type, java.lang.String propertyName)Returns whether the given property can possibly be set on the given type.booleanJSType. canTestForEqualityWith(JSType that)Tests whetherthisandthatare meaningfully comparable.booleanJSType. canTestForShallowEqualityWith(JSType that)Tests whetherthisandthatare meaningfully comparable using shallow comparison.protected abstract TVisitor.WithDefaultCase. caseDefault(JSType type)Called for all cases unless the specific case is overridden in the concrete subclass.static ObjectTypeObjectType. cast(JSType type)A null-safe version of JSType#toObjectType.booleanUnionType. contains(JSType type)AUnionTypecontains a given type (alternate) iff the member vector contains it.booleanJSType. containsReferenceAncestor(JSType target)This function searchers for a type `target` in the reference chain of ProxyObjectTypesstatic FunctionType.ParameterFunctionType.Parameter. create(JSType type, boolean isOptional, boolean isVariadic)FunctionTypeJSTypeRegistry. createConstructorType(java.lang.String name, Node source, java.util.List<FunctionType.Parameter> parameters, JSType returnType, com.google.common.collect.ImmutableList<TemplateType> templateKeys, boolean isAbstract)Creates a constructor function type.EnumTypeJSTypeRegistry. createEnumType(java.lang.String name, Node source, JSType elementsType)Creates an enum type.FunctionTypeJSTypeRegistry. createFunctionType(JSType returnType, JSType... parameterTypes)Creates a function type.FunctionTypeJSTypeRegistry. createFunctionType(JSType returnType, java.util.List<FunctionType.Parameter> parameters)JSTypeJSTypeRegistry. createFunctionTypeWithInstanceType(ObjectType instanceType, JSType returnType, java.util.List<JSType> parameterTypes)Creates a function type in whichthisrefers to an object instance.FunctionTypeJSTypeRegistry. createFunctionTypeWithNewReturnType(FunctionType existingFunctionType, JSType returnType)Creates a new function type based on an existing function type but with a new return type.FunctionTypeJSTypeRegistry. createFunctionTypeWithVarArgs(JSType returnType, JSType... parameterTypes)Creates a function type.JSTypeJSTypeRegistry. createNullableType(JSType type)Creates a type representing nullable values of the given type.JSTypeJSTypeRegistry. createOptionalNullableType(JSType type)Creates a nullable and undefine-able value of the given type.com.google.common.collect.ImmutableList<FunctionType.Parameter>JSTypeRegistry. createOptionalParameters(JSType... parameterTypes)Creates a tree hierarchy representing a typed parameter list in which every parameter is optional.JSTypeJSTypeRegistry. createOptionalType(JSType type)Creates a type representing optional values of the given type.com.google.common.collect.ImmutableList<FunctionType.Parameter>JSTypeRegistry. createParameters(JSType... parameterTypes)Creates a tree hierarchy representing a typed argument list.com.google.common.collect.ImmutableList<FunctionType.Parameter>JSTypeRegistry. createParametersWithVarArgs(JSType... parameterTypes)Creates a tree hierarchy representing a typed argument list.TemplateTypeJSTypeRegistry. createTemplateType(java.lang.String name, JSType bound)TemplatizedTypeJSTypeRegistry. createTemplatizedType(ObjectType baseType, JSType... templatizedTypes)Creates a templatized instance of the specified type.JSTypeJSTypeRegistry. createUnionType(JSType... variants)Creates a union type whose variants are the arguments.booleanJSTypeRegistry. declareType(StaticScope scope, java.lang.String name, JSType type)Records declared global type names.booleanJSTypeRegistry. declareTypeForExactScope(StaticScope scope, java.lang.String name, JSType type)Records declared global type names.booleanObjectType. defineDeclaredProperty(java.lang.String propertyName, JSType type, Node propertyNode)Defines a property whose type is explicitly declared by the programmer.booleanObjectType. defineInferredProperty(java.lang.String propertyName, JSType type, Node propertyNode)Defines a property whose type is inferred.booleanObjectType. defineSynthesizedProperty(java.lang.String propertyName, JSType type, Node propertyNode)Defines a property whose type is on a synthesized object.booleanJSType. differsFrom(JSType that)Whether this type is meaningfully different fromthattype for the purposes of data flow analysis.JSTypeJSType. getGreatestSubtype(JSType that)Gets the greatest subtype ofthisandthat.JSTypeJSTypeRegistry. getGreatestSubtypeWithProperty(JSType type, java.lang.String propertyName)Gets the greatest subtype of thetypethat has a propertypropertyNamedefined on it.JSTypeJSType. getLeastSupertype(JSType that)Gets the least supertype ofthisandthat.JSTypeUnionType. getLeastSupertype(JSType that)JSTypeUnionType. getRestrictedUnion(JSType type)Returns a more restricted union type thanthisone, in which all subtypes oftypehave been removed.JSType.TypePairJSType. getTypesUnderEquality(JSType that)Computes the subset ofthisandthattypes if equality is observed.JSType.TypePairUnionType. getTypesUnderEquality(JSType that)JSType.TypePairJSType. getTypesUnderInequality(JSType that)Computes the subset ofthisandthattypes if inequality is observed.JSType.TypePairUnionType. getTypesUnderInequality(JSType that)JSType.TypePairJSType. getTypesUnderShallowEquality(JSType that)Computes the subset ofthisandthattypes under shallow equality.JSType.TypePairJSType. getTypesUnderShallowInequality(JSType that)Computes the subset ofthisandthattypes under shallow inequality.JSType.TypePairUnionType. getTypesUnderShallowInequality(JSType that)booleanJSType. isSubtype(JSType supertype)Checks whetherthisis a subtype ofthat.booleanJSType. isSubtype(JSType supertype, JSType.SubtypingMode mode)Deprecated.PreferisSubtype(JSType)instead.booleanJSType. isSubtypeOf(JSType supertype)booleanJSType. isSubtypeOf(JSType supertype, JSType.SubtypingMode mode)booleanJSType. isSubtypeWithoutStructuralTyping(JSType supertype)the logic of this method is similar to isSubtype, except that it does not perform structural interface matchingvoidJSType. matchConstraint(JSType constraint)Modify this type so that it matches the specified type.voidPrototypeObjectType. matchConstraint(JSType constraint)voidProxyObjectType. matchConstraint(JSType constraint)voidUnionType. matchConstraint(JSType constraint)voidJSTypeRegistry. overwriteDeclaredType(StaticScope scope, java.lang.String name, JSType type)Overrides a declared global type name.voidJSTypeRegistry. overwriteDeclaredType(java.lang.String name, JSType type)Overrides a declared global type name.voidJSTypeRegistry. registerClosureModule(java.lang.String moduleName, Node definitionNode, JSType type)Ensures that a type annotation pointing to a Closure modules is correctly resolved.voidJSTypeRegistry. registerPropertyOnType(java.lang.String propertyName, JSType type)Tells the type system thatownermay have a property namedpropertyName.voidJSTypeRegistry. resetImplicitPrototype(JSType type, ObjectType newImplicitProto)Set the implicit prototype if it's possible to do so.voidTemplateType. setBound(JSType bound)TernaryValueAllType. testForEquality(JSType that)TernaryValueBigIntType. testForEquality(JSType that)TernaryValueBooleanType. testForEquality(JSType that)TernaryValueEnumElementType. testForEquality(JSType that)TernaryValueEnumType. testForEquality(JSType that)TernaryValueJSType. testForEquality(JSType that)Comparesthisandthat.TernaryValueNullType. testForEquality(JSType that)TernaryValueNumberType. testForEquality(JSType that)TernaryValueObjectType. testForEquality(JSType that)TernaryValueProxyObjectType. testForEquality(JSType that)TernaryValueStringType. testForEquality(JSType that)TernaryValueSymbolType. testForEquality(JSType that)TernaryValueUnionType. testForEquality(JSType that)TernaryValueUnknownType. testForEquality(JSType that)TernaryValueVoidType. testForEquality(JSType that)static FunctionTypeJSType. toMaybeFunctionType(JSType type)Null-safe version of toMaybeFunctionType().voidJSTypeRegistry. unregisterPropertyOnType(java.lang.String propertyName, JSType type)Removes the index's reference to a property on the given type (if it is currently registered).FunctionType.BuilderFunctionType.Builder. withInferredReturnType(JSType returnType)Sets an inferred return type.FunctionType.BuilderFunctionType.Builder. withReturnType(JSType returnType)Set the return type.FunctionType.BuilderFunctionType.Builder. withReturnType(JSType returnType, boolean inferred)Set the return type and whether it's inferred.FunctionType.BuilderFunctionType.Builder. withTypeOfThis(JSType typeOfThis)Set the "this" type.Method parameters in com.google.javascript.rhino.jstype with type arguments of type JSType Modifier and Type Method Description booleanFunctionType. acceptsArguments(java.util.List<? extends JSType> argumentTypes)UnionType.BuilderUnionType.Builder. addAlternates(java.util.Collection<? extends JSType> c)UnionType.BuilderUnionType.Builder. addAlternates(java.util.List<? extends JSType> list)JSTypeJSTypeRegistry. createFunctionTypeWithInstanceType(ObjectType instanceType, JSType returnType, java.util.List<JSType> parameterTypes)Creates a function type in whichthisrefers to an object instance.JSTypeJSTypeRegistry. createRecordType(java.util.Map<java.lang.String,? extends JSType> props)TemplatizedTypeJSTypeRegistry. createTemplatizedType(ObjectType baseType, com.google.common.collect.ImmutableList<JSType> templatizedTypes)Creates a templatized instance of the specified type.TemplatizedTypeJSTypeRegistry. createTemplatizedType(ObjectType baseType, java.util.Map<TemplateType,JSType> templatizedTypes)Creates a templatized instance of the specified type.JSTypeJSTypeRegistry. createUnionType(java.util.List<? extends JSType> variants)static TemplateTypeReplacerTemplateTypeReplacer. forInference(JSTypeRegistry registry, java.util.Map<TemplateType,JSType> bindings)Creates a replacer for use duringTypeInference.booleanJSType. setValidator(com.google.common.base.Predicate<JSType> validator)Certain types have constraints on them at resolution-time.booleanNamedType. setValidator(com.google.common.base.Predicate<JSType> validator)booleanProxyObjectType. setValidator(com.google.common.base.Predicate<JSType> validator)booleanTemplateType. setValidator(com.google.common.base.Predicate<JSType> validator)Constructors in com.google.javascript.rhino.jstype with parameters of type JSType Constructor Description SimpleSlot(java.lang.String name, JSType type, boolean inferred)TypePair(JSType typeA, JSType typeB)
-