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.
-
Interface Summary Interface Description StaticReference<T> 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
.StaticSourceFile TheStaticSourceFile
contains information about a compiler input.StaticSymbolTable<S extends StaticSlot<JSType>,R extends StaticReference<JSType>> Lookup references by the symbols that they refer to.Visitor<T> A type visitor. -
Class Summary Class Description AllType All type, representing all values.BooleanType Boolean type.EnumElementType The type of individual elements of an enum type (seeEnumType
).EnumType An enum type representing a branded collection of elements.FunctionBuilder A builder class for function and arrow types.FunctionParamBuilder A builder for the Rhino Node representing Function parameters.FunctionType This derived type provides extended information about a function, including its return type and argument types.JSType Represents JavaScript value types.JSType.TypePair JSTypeRegistry The type registry is used to resolve named types.ModificationVisitor A visitor implementation that enables type substitutions.NoObjectType The bottom Object type, representing the subclass of all objects.NoType Bottom type, representing the subclass of any value or object.NullType Null type.NumberType Number type.ObjectType Object type.Property A property slot of an object.RecordTypeBuilder A builder for record types.SimpleReference<T extends StaticSlot<JSType>> A simple immutable reference.SimpleSlot The minimum implementation of StaticSlot. SimpleSourceFile A simple implementation ofStaticSourceFile
for testing.StringType String type.TemplateType TemplateTypeMap Manages a mapping from TemplateType to its resolved JSType.TemplatizedType An object type with declared template types, such asArray.
.UnionType TheUnionType
implements a common JavaScript idiom in which the code is specifically designed to work with multiple input types.UnknownType TheUnknown
type.VoidType Void type whose only element is theundefined
value. -
Enum Summary Enum Description BooleanLiteralSet A set in the domain {true,false}.JSTypeNative Constants corresponding to types that are built into a JavaScript engine and other types that occur very often in the type system.JSTypeRegistry.ResolveMode 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>)
.TernaryValue An enum for ternary logic.