Package com.google.javascript.rhino
The core AST from Rhino.
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 ErrorReporter This is interface defines a protocol for the reporting of errors during JavaScript translation or execution.PMap<K,V> A minimal interface for null-hostile, persistent immutable maps.PMap.Reconciler<K,V> StaticRef TheStaticReftells us all the ways that aStaticSlotis used in a program.StaticScope TheStaticScopeinterface must be implemented by any object that defines variables for the purposes of static analysis.StaticSlot TheStaticSlotinterface must be implemented by variables that can appear as members of aStaticScope.StaticSourceFile TheStaticSourceFilecontains information about a compiler input.StaticSymbolTable<S extends StaticSlot,R extends StaticRef> Lookup references by the symbols that they refer to. -
Class Summary Class Description HamtPMap<K,V> An immutable sorted map with efficient (persistent) updates.InputId An id used uniquely identify a CompilerInputIR An AST construction helper classJSDocInfo JSDoc information describing JavaScript code.JSDocInfo.Marker Defines a class for containing the parsing information for this JSDocInfo.JSDocInfo.NamePosition A piece of information (found in a marker) which contains a position with a name node.JSDocInfo.StringPosition A piece of information (found in a marker) which contains a position with a string.JSDocInfo.TypePosition A piece of information (found in a marker) which contains a position with a type expression syntax tree.JSDocInfoBuilder A builder forJSDocInfoobjects.JSIdentifier Utility class to hold isJSIdentifier.JSTypeExpression When parsing a jsdoc, a type-annotation string is parsed to a type AST.Node This class implements the root of the intermediate representation.Node.AncestorIterable Iterator to go up the ancestor tree.Node.SideEffectFlags A helper class for getting and setting invocation side-effect flags.Node.TypeDeclarationNode Represents a node in the type declaration AST.NominalTypeBuilder Builder interface for declaring properties on class-like (nominal) types.NonJSDocComment Minimal class holding information about a nonJSDoc comment's source location and contentsQualifiedName Abstraction over a qualified name.SimpleErrorReporter A simpleErrorReporterthat collects warnings and errors and makes them accessible viaSimpleErrorReporter.errorsandSimpleErrorReporter.warnings.SimpleSourceFile A simple implementation ofStaticSourceFilefor testing.SourcePosition<T> Represents a position in some piece of source code, with an associated item of type T found at that position.TokenStream This class implements the JavaScript scanner.TokenUtil Helper methods for parsing JavaScript.TypeDeclarationsIR An AST construction helper class for TypeDeclarationNode -
Enum Summary Enum Description ClosurePrimitive Enum of primitive functions that the compiler recognizesJSDocInfo.Visibility Visibility categories.Outcome An enum for representing truthiness and nullishness of outcomes.StaticSourceFile.SourceKind Source kinds.Token This class implements the JavaScript scanner.