AbstractCommandLineRunner |
Implementations of AbstractCommandLineRunner translate flags into Java API calls on the Compiler.
|
AbstractCommandLineRunner.CommandLineConfig |
Configurations for the command line configs.
|
AbstractCommandLineRunner.CommandLineConfig.ErrorFormatOption |
Set of options that can be used with the --formatting flag.
|
AbstractCommandLineRunner.FlagEntry |
A pair from flag to its value.
|
AbstractCommandLineRunner.JsChunkSpec |
Represents a specification for a serving chunk.
|
AbstractCommandLineRunner.JsonFileSpec |
Representation of a source file from an encoded json stream input
|
AbstractCommandLineRunner.JsSourceType |
Flag types for JavaScript source files.
|
AbstractCompiler |
An abstract compiler, to help remove the circular dependency of passes on JSCompiler.
|
AbstractCompiler.LifeCycleStage |
What point in optimizations we're in.
|
AbstractMessageFormatter |
|
AbstractScope |
Scope contains information about a variable scope in JavaScript.
|
AbstractVar |
Used by Scope to store information about variables.
|
AllowlistWarningsGuard |
An extension of WarningsGuard that provides functionality to maintain a list of warnings
(allowlist).
|
AllowlistWarningsGuard.AllowlistBuilder |
Allowlist builder
|
AstAnalyzer |
Logic for answering questions about portions of the AST.
|
AstValidator |
This class walks the AST and validates that the structure is correct.
|
AstValidator.ViolationHandler |
Violation handler
|
BasicErrorManager |
Deprecated.
|
ByPathWarningsGuard |
An implementation of a WarningsGuard that can modify the
CheckLevel based on the file that caused the warning, and whether
this file matches a set of paths (specified either as include or exclude
of path name parts).
|
CheckConformance.InvalidRequirementSpec |
|
CheckConformance.Precondition |
A condition that must be true for a rule to possibly match a node.
|
CheckConformance.Rule |
|
CheckLevel |
Controls checking levels of certain options.
|
CodeConsumer |
Abstracted consumer of the CodeGenerator output.
|
CodeGenerator |
CodeGenerator generates codes from a parse tree, sending it to the specified CodeConsumer.
|
CodeGenerator.Context |
Information on the current context.
|
CodePrinter.Builder |
|
CodePrinter.Builder.CodeGeneratorFactory |
|
CodePrinter.Format |
Specifies a format for code generation.
|
CodingConvention |
CodingConvention defines a set of hooks to customize the behavior of the
Compiler for a specific team/company.
|
CodingConvention.AssertionFunctionSpec |
A description of a JavaScript function that will throw an exception when either:
One of its parameters does not match the return type of the function
One of its parameters is falsy.
|
CodingConvention.AssertionFunctionSpec.AssertionKind |
|
CodingConvention.AssertionFunctionSpec.Builder |
|
CodingConvention.Bind |
Bind class
|
CodingConvention.Cache |
Cache class
|
CodingConvention.DelegateRelationship |
Delegates provides a mechanism and structure for identifying where classes
can call out to optional code to augment their functionality.
|
CodingConvention.ObjectLiteralCast |
An object literal cast provides a mechanism to cast object literals to
other types without a warning.
|
CodingConvention.SubclassRelationship |
Record subclass relations
|
CodingConvention.SubclassType |
Specify the kind of inheritance
|
CodingConventions.Proxy |
A convention that wraps another.
|
CommandLineRunner.FormattingOption |
Set of options that can be used with the --formatting flag.
|
CompilationLevel |
A CompilationLevel represents the level of optimization that should be
applied when compiling JavaScript code.
|
CompileMetricsRecorderInterface |
Interface used by `AbstractCompilerRunner` to report metrics about the compilation action it
performs.
|
Compiler |
Compiler (and the other classes in this package) does the following:
parses JS code
checks for undefined variables
performs optimizations such as constant folding and constants inlining
renames variables (to short names)
outputs compact JavaScript code
External variables are declared in 'externs' files.
|
Compiler.CodeBuilder |
Stores a buffer of text to which more can be appended.
|
CompilerInput |
A class for the internal representation of an input to the compiler.
|
CompilerInput.ModuleType |
JavaScript module type.
|
CompilerInputProvider |
A provider mapping a InputId to a CompilerInput.
|
CompilerOptions |
Compiler options
|
CompilerOptions.AliasStringsMode |
A mode enum used to indicate the alias strings policy for the AliasStrings pass
|
CompilerOptions.AliasTransformation |
A Role Specific Interface for the JS Compiler to report aliases used to change the code during
a compile.
|
CompilerOptions.AliasTransformationHandler |
A Role Specific Interface for JS Compiler that represents a data holder object which is used to
store goog.scope alias code changes to code made during a compile.
|
CompilerOptions.ChunkOutputType |
Format for compiler output when multiple chunks are requested.
|
CompilerOptions.DevMode |
When to do the extra validity checks
|
CompilerOptions.Environment |
An environment specifies the built-in externs that are loaded for a given compilation.
|
CompilerOptions.Es6ModuleTranspilation |
How ES modules should be transformed.
|
CompilerOptions.ExtractPrototypeMemberDeclarationsMode |
|
CompilerOptions.IncrementalCheckMode |
|
CompilerOptions.InstrumentOption |
An option to determine what level of code instrumentation is performed, if any
|
CompilerOptions.IsolationMode |
What kind of isolation is going to be used
|
CompilerOptions.J2clPassMode |
A mode enum used to indicate whether J2clPass should be enabled, disabled, or enabled
automatically if there is any J2cl source file (i.e.
|
CompilerOptions.LanguageMode |
A language mode applies to the whole compilation job.
|
CompilerOptions.OutputJs |
What type of JS file should be output by this compilation
|
CompilerOptions.PropertyCollapseLevel |
|
CompilerOptions.Reach |
A common enum for compiler passes that can run either globally or locally.
|
CompilerOptions.TracerMode |
How much tracing we want to do
|
CompilerOptions.TweakProcessing |
Option for the ProcessTweaks pass
|
CompilerPass |
Interface for classes that can compile JS.
|
ComposeWarningsGuard |
WarningsGuard that represents just a chain of other guards.
|
ConformanceRules.AbstractRule |
A conformance rule implementation to support things common to all rules such as allowlisting
and reporting.
|
ConformanceRules.ConformanceLevel |
Possible check check results
|
ConformanceRules.ConformanceResult |
Classes extending AbstractRule must return ConformanceResult from their checkConformance
implementation.
|
ControlFlowGraph |
Control flow graph.
|
ControlFlowGraph.Branch |
The edge object for the control flow graph.
|
CssRenamingMap |
Interface used by ReplaceCssNames to substitute CSS class names.
|
CssRenamingMap.Style |
Kind of renaming map
|
CustomPassExecutionTime |
Custom pass type.
|
DependencyOptions |
Options for how to manage dependencies between input files.
|
DependencyOptions.DependencyMode |
Describes how the compiler should manage dependencies.
|
DestructuredTarget |
Represents a single target inside a destructuring pattern, whether another pattern or a lhs
expression.
|
DiagnosticGroup |
Group a set of related diagnostic types together, so that they can be toggled on and off as one
unit.
|
DiagnosticGroups |
Named groups of DiagnosticTypes exposed by Compiler.
|
DiagnosticType |
The type of a compile or analysis error.
|
ErrorFormat |
Error formats available.
|
ErrorHandler |
The error handler is any generic sink for warnings and errors,
after they've passed through any filtering WarningsGuard s.
|
ErrorManager |
The error manager is in charge of storing, organizing and displaying
errors and warnings generated by the compiler.
|
IdGenerator |
Id generator used in CrossModuleMotion.
|
ImplicitNullabilityCheck.Nullability |
Represents the types of implicit nullability errors caught by this pass: a) implicitly nonnull
(missing a "!"), and b) implicitly nullable (missing a "?").
|
ImplicitNullabilityCheck.Result |
Information to represent a single "implicit nullability result", including the JSDoc string
node that needs a "!" or "?" to be explicit, as well as an enum indicating which of the two
nullability cases were found ("!" or "?").
|
InvalidatingTypes |
Keeps track of "invalidating types" that force type-based optimizations to back off.
|
InvalidatingTypes.Builder |
Builder
|
JsAst |
Generates an AST for a JavaScript source file.
|
JsAst.RhinoError |
Representation of Rhino parser error.
|
JSChunk |
A JavaScript chunk has a unique name, consists of a list of compiler inputs, and can depend on
other chunks.
|
JSChunkGraph.MissingChunkException |
Another exception class
|
JSError |
Compile error description.
|
JsMessage |
A representation of a translatable message in JavaScript source code.
|
JsMessage.Builder |
Contains functionality for creating JS messages.
|
JsMessage.IdGenerator |
ID generator
|
JsMessage.PlaceholderFormatException |
Thrown when parsing a message string into parts fails because of a misformatted place holder.
|
JsMessage.PlaceholderReference |
A reference to a placeholder in a translatable message.
|
JsMessage.Style |
Message style that could be used for JS code parsing.
|
JsMessageDefinition |
Container class that holds information about JS message source.
|
LightweightMessageFormatter |
Lightweight message formatter.
|
Linter |
Tool for running just the lint checks which can be run on a single file at a time.
|
Linter.Builder |
Builder for a Linter that allows some customization.
|
MessageBundle |
An interface for providing alternative values for user-visible messages in
JavaScript code.
|
MessageFormatter |
Format warnings and errors.
|
ModuleIdentifier |
Basic information on an entry point module.
|
NameGenerator |
A class that generates unique JavaScript variable/property names.
|
NodeTraversal |
NodeTraversal allows an iteration through the nodes in the parse tree, and facilitates the
optimizations on the parse tree.
|
NodeTraversal.AbstractModuleCallback |
Abstract callback that knows when a global script, goog.provide file, goog.module,
goog.loadModule, ES module or CommonJS module is entered or exited.
|
NodeTraversal.AbstractPostOrderCallback |
Abstract callback to visit all nodes in postorder.
|
NodeTraversal.AbstractPostOrderCallbackInterface |
Abstract callback to visit all nodes in postorder.
|
NodeTraversal.AbstractPreOrderCallback |
Abstract callback to visit all nodes in preorder.
|
NodeTraversal.Builder |
Builder
|
NodeTraversal.Callback |
Callback for tree-based traversals
|
NodeTraversal.ScopedCallback |
Callback that also knows about scope changes
|
NodeUtil.GoogRequire |
Represents a goog.require'd namespace and property inside a module.
|
NodeUtil.ValueType |
|
NodeUtil.Visitor |
Interface for use with the visit method.
|
PassConfig |
Pass factories and meta-data for native Compiler passes.
|
PassConfig.PassConfigDelegate |
An implementation of PassConfig that just proxies all its method calls into an inner class.
|
PassFactory |
A factory for creating JSCompiler passes based on the Options injected.
|
PassFactory.Builder |
|
PerformanceTracker |
A PerformanceTracker collects statistics about the runtime of each pass, and
how much a pass impacts the size of the compiled output, before and after
gzip.
|
PerformanceTracker.Stats |
A Stats object contains statistics about a pass run, such as running time,
size changes, etc
|
PolymerExportPolicy |
How to handle exports/externs for Polymer properties and methods.
|
PropertyRenamingPolicy |
Policies to determine how properties should be renamed.
|
Reference |
Represents a single declaration or reference to a variable.
|
ReferenceCollection |
A collection of references.
|
ReferenceCollector.Behavior |
Way for callers to add specific behavior during traversal that
utilizes the built-up reference information.
|
ReferenceMap |
Maps Var s to their references.
|
Region |
Source code region.
|
RenamingMap |
Interface used by to substitute names.
|
ReplacedStringsDecoder |
A decoder for strings encoded by the ReplaceStrings JS compiler pass.
|
ReplaceMessages.ProtectedJsMessage |
Holds information about the protected form of a translatable message that appears in the AST.
|
Result |
Compilation results
|
RewriteGoogJsImports.Mode |
Possible traversal modes - either linting or linting+rewriting.
|
Scope |
Scope contains information about a variable scope in JavaScript.
|
ShowByPathWarningsGuard.ShowType |
Controls whether warnings should be restricted to a specified path or
suppressed within the specified path.
|
SortingErrorManager |
|
SortingErrorManager.ErrorReportGenerator |
Strategy for customizing the output format of the error report
|
SourceAst |
An interface for accessing the AST root of an input.
|
SourceExcerptProvider |
A source excerpt provider is responsible for building source code excerpt
of specific locations, such as a specific line or a region around a
given line number.
|
SourceExcerptProvider.ExcerptFormatter |
A excerpt formatter is responsible of formatting source excerpts.
|
SourceExcerptProvider.SourceExcerpt |
Source excerpt variety.
|
SourceFile |
An abstract representation of a source file that provides access to language-neutral features.
|
SourceFile.Builder |
A builder interface for source files.
|
SourceFileMapping |
A SourceFileMapping maps a source file, line, and column into an Mapping.OriginalMapping .
|
SourceMap |
Collects information mapping the generated (compiled) source back to its original source for
debugging purposes.
|
SourceMap.DetailLevel |
Source maps can be very large different levels of detail can be specified.
|
SourceMap.Format |
An enumeration of available source map formats
|
SourceMap.LocationMapping |
Function that mape a "destination" location to use within the source map.
|
SourceMapInput |
A lazy-loaded SourceMapConsumerV3 instance.
|
SymbolTable |
A symbol table for people that want to use Closure Compiler as an indexer.
|
SymbolTable.Reference |
Reference
|
SymbolTable.Symbol |
A symbol-table entry
|
SymbolTable.SymbolScope |
Scope of a symbol
|
TypedScope |
TypedScope contains information about variables and their types.
|
TypedVar |
|
TypeMatchingStrategy |
The different strategies for matching the JSType of nodes.
|
TypeMatchingStrategy.MatchResult |
The result of comparing two different JSType instances.
|
TypeMismatch |
Signals that the first type and the second type have been used interchangeably.
|
Var |
Used by Scope to store information about variables.
|
VariableMap |
Stores the mapping from original variable name to new variable names.
|
VariableRenamingPolicy |
Policies to determine which variables should be renamed.
|
WarningLevel |
Convert the warnings level to an Options object.
|
WarningsGuard |
Class that allows to flexibly manage what to do with a reported warning/error.
|
WarningsGuard.Priority |
Priority
|
Xid.HashFunction |
Strategy for selecting the underlying hash code function to be used by Xid.
|