Package com.google.javascript.rhino.jstype
package com.google.javascript.rhino.jstype
Provides abstractions to represent types in JavaScript.
Rhino is an open-source implementation of JavaScript written entirely in Java.
It is typically embedded into Java applications to provide scripting to end
users.
-
ClassDescriptionAll type, representing all values.A set in the domain {true,false}.Boolean type.The type of individual elements of an enum type (see
EnumType
).An enum type representing a branded collection of elements.A builder class for function and arrow types.A builder for the Rhino Node representing Function parameters.This derived type provides extended information about a function, including its return type and argument types.Represents JavaScript value types.Constants corresponding to types that are built into a JavaScript engine and other types that occur very often in the type system.The type registry is used to resolve named types.The type registry has three modes, which control how type ASTs are converted to types inJSTypeRegistry.createFromTypeNodes(com.google.javascript.rhino.Node, java.lang.String, com.google.javascript.rhino.jstype.StaticScope<com.google.javascript.rhino.jstype.JSType>)
.A visitor implementation that enables type substitutions.The bottom Object type, representing the subclass of all objects.Bottom type, representing the subclass of any value or object.Null type.Number type.Object type.A property slot of an object.A builder for record types.A simple immutable reference.The minimum implementation of StaticSlot. A simple implementation ofStaticSourceFile
for testing.TheStaticReference
tells us all the ways that aStaticSlot
is used in a program.StaticScope<T>TheStaticScope
interface must be implemented by any object that defines variables for the purposes of static analysis.StaticSlot<T>TheStaticSlot
interface must be implemented by variables that can appear as members of aStaticScope
.TheStaticSourceFile
contains information about a compiler input.Lookup references by the symbols that they refer to.String type.Manages a mapping from TemplateType to its resolved JSType.An object type with declared template types, such asArray.
.An enum for ternary logic.TheUnionType
implements a common JavaScript idiom in which the code is specifically designed to work with multiple input types.TheUnknown
type.Visitor<T>A type visitor.Void type whose only element is theundefined
value.