Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
com.google.javascript.jscomp.bundle | |
com.google.javascript.jscomp.deps |
Analyzes information about dependencies between files.
|
com.google.javascript.jscomp.disambiguate | |
com.google.javascript.jscomp.ijs | |
com.google.javascript.jscomp.lint |
Provides "lint" checks: Checks which are likely to provide a lot of false positives, and therefore
should not generally be turned on as errors, but which might be appropriate to include in a static
analysis tool.
|
com.google.javascript.jscomp.modules | |
com.google.javascript.jscomp.transpile | |
com.google.javascript.refactoring |
Class and Description |
---|
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.JsModuleSpec
Represents a specification for a js module.
|
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.
|
AbstractMessageFormatter
Abstract message formatter providing default behavior for implementations
of
MessageFormatter needing a SourceExcerptProvider . |
AbstractScope
Scope contains information about a variable scope in JavaScript.
|
AbstractVar
Used by
Scope to store information about variables. |
AnonymousFunctionNamingPolicy
Strategies for how to do naming of anonymous functions that occur as
r-values in assignments and variable declarations.
|
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.Rule |
CheckLevel
Controls checking levels of certain options.
|
CheckLevelLegacy
Enum used in flags to control the behavior of JS compiler checks.
|
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.
|
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.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.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 ES6 modules should be transformed.
|
CompilerOptions.ExtractPrototypeMemberDeclarationsMode |
CompilerOptions.IncrementalCheckMode |
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.
|
ConformanceConfig
A container to describe code requirements
|
ConformanceConfig.Builder
A container to describe code requirements
|
ConformanceConfigOrBuilder |
ConformanceRules.AbstractRule
A conformance rule implementation to support things common to all rules such as whitelisting
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.
|
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.
|
DiagnosticGroupWarningsGuard
Sets the level for a particular DiagnosticGroup.
|
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.
|
FunctionInformationMap
Protobuf type
jscomp.FunctionInformationMap |
FunctionInformationMap.Builder
Protobuf type
jscomp.FunctionInformationMap |
FunctionInformationMap.Entry
Protobuf type
jscomp.FunctionInformationMap.Entry |
FunctionInformationMap.Entry.Builder
Protobuf type
jscomp.FunctionInformationMap.Entry |
FunctionInformationMap.EntryOrBuilder |
FunctionInformationMap.Module
Protobuf type
jscomp.FunctionInformationMap.Module |
FunctionInformationMap.Module.Builder
Protobuf type
jscomp.FunctionInformationMap.Module |
FunctionInformationMap.ModuleOrBuilder |
FunctionInformationMapOrBuilder |
HotSwapCompilerPass
Interface for compiler passes that can be used in a hot-swap fashion.
|
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 "?").
|
Instrumentation
Protobuf type
jscomp.Instrumentation |
Instrumentation.Builder
Protobuf type
jscomp.Instrumentation |
InstrumentationOrBuilder |
InvalidatingTypes
Keeps track of "invalidating types" that force type-based optimizations to back off, specifically
for
InlineProperties , AmbiguateProperties , and DisambiguateProperties . |
InvalidatingTypes.Builder
Builder
|
JsAst
Generates an AST for a JavaScript source file.
|
JsAst.RhinoError
Representation of Rhino parser error.
|
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.Style
Message style that could be used for JS code parsing.
|
JsMessageDefinition
Container class that holds information about JS message source.
|
JSModule
A JavaScript module has a unique name, consists of a list of compiler inputs, and can depend on
other modules.
|
JSModuleGraph.MissingModuleException
Another exception class
|
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.
|
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 goog.provide, goog.module, and ES modules are entered and
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.Callback
Callback for tree-based traversals
|
NodeTraversal.ChangeScopeRootCallback
Callback for passes that iterate over a list of change scope roots (FUNCTIONs and SCRIPTs)
|
NodeTraversal.ScopedCallback
Callback that also knows about scope changes
|
NodeUtil.ValueType |
NodeUtil.Visitor
Interface for use with the visit method.
|
PassConfig
Pass factories and meta-data for native Compiler passes.
|
PassFactory
A factory for creating JSCompiler passes based on the Options injected.
|
PassFactory.Builder
A builder for a
PassFactory . |
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.
|
ReferenceCollectingCallback.Behavior
Way for callers to add specific behavior during traversal that
utilizes the built-up reference information.
|
ReferenceCollection
A collection of references.
|
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.
|
Requirement
A specification of code requirements
NEXT ID: 15
|
Requirement.Builder
A specification of code requirements
NEXT ID: 15
|
Requirement.Severity
With what severity to report the issue by default.
|
Requirement.Type
A classification of the requirement and how it is enforced.
|
Requirement.TypeMatchingStrategy
Protobuf enum
jscomp.Requirement.TypeMatchingStrategy |
Requirement.WhitelistEntry
Protobuf type
jscomp.Requirement.WhitelistEntry |
Requirement.WhitelistEntry.Builder
Protobuf type
jscomp.Requirement.WhitelistEntry |
Requirement.WhitelistEntry.Reason
Protobuf enum
jscomp.Requirement.WhitelistEntry.Reason |
Requirement.WhitelistEntryOrBuilder |
RequirementOrBuilder |
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
A customizable error manager that sorts all errors and warnings reported to it, and has
customizable output through the
SortingErrorManager.ErrorReportGenerator interface. |
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.
|
SourceFile.Generator
A JavaScript source code provider.
|
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
|
SyntacticScopeCreator.ScopeFactory
A simple API for injecting the use of alternative Scope classes
|
SyntheticAst
An AST generated totally by the compiler.
|
TypedScope
TypedScope contains information about variables and their types.
|
TypedVar
AbstractVar subclass for use with TypedScope . |
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
|
WhitelistWarningsGuard
An extension of
WarningsGuard that provides functionality to maintain
a list of warnings (white-list). |
WhitelistWarningsGuard.WhitelistBuilder
Whitelist builder
|
Xid.HashFunction
Strategy for selecting the underlying hash code function to be used by Xid.
|
Class and Description |
---|
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.
|
CompilerOptions
Compiler options
|
DiagnosticGroup
Group a set of related diagnostic types together, so that they can be toggled on and off as one
unit.
|
JSError
Compile error description.
|
Result
Compilation results
|
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.
|
SourceFile
An abstract representation of a source file that provides access to language-neutral features.
|
Class and Description |
---|
DiagnosticType
The type of a compile or analysis error.
|
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.
|
SourceFile
An abstract representation of a source file that provides access to language-neutral features.
|
Class and Description |
---|
AbstractCompiler
An abstract compiler, to help remove the circular dependency of passes on JSCompiler.
|
CheckLevel
Controls checking levels of certain options.
|
CompilerPass
Interface for classes that can compile JS.
|
Class and Description |
---|
AbstractCompiler
An abstract compiler, to help remove the circular dependency of passes on JSCompiler.
|
CheckLevel
Controls checking levels of certain options.
|
CompilerPass
Interface for classes that can compile JS.
|
DiagnosticType
The type of a compile or analysis error.
|
JSError
Compile error description.
|
WarningsGuard
Class that allows to flexibly manage what to do with a reported
warning/error.
|
Class and Description |
---|
AbstractCompiler
An abstract compiler, to help remove the circular dependency of passes on JSCompiler.
|
CompilerPass
Interface for classes that can compile JS.
|
ControlFlowGraph
Control flow graph.
|
DiagnosticGroup
Group a set of related diagnostic types together, so that they can be toggled on and off as one
unit.
|
DiagnosticType
The type of a compile or analysis error.
|
HotSwapCompilerPass
Interface for compiler passes that can be used in a hot-swap fashion.
|
NodeTraversal
NodeTraversal allows an iteration through the nodes in the parse tree,
and facilitates the optimizations on the parse tree.
|
NodeTraversal.AbstractPostOrderCallback
Abstract callback to visit all nodes in postorder.
|
NodeTraversal.AbstractPreOrderCallback
Abstract callback to visit all nodes in preorder.
|
NodeTraversal.Callback
Callback for tree-based traversals
|
Class and Description |
---|
AbstractCompiler
An abstract compiler, to help remove the circular dependency of passes on JSCompiler.
|
CompilerPass
Interface for classes that can compile JS.
|
DiagnosticType
The type of a compile or analysis error.
|
HotSwapCompilerPass
Interface for compiler passes that can be used in a hot-swap fashion.
|
NodeTraversal
NodeTraversal allows an iteration through the nodes in the parse tree,
and facilitates the optimizations on the parse tree.
|
NodeTraversal.Callback
Callback for tree-based traversals
|
Class and Description |
---|
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.
|
CompilerOptions
Compiler options
|
SourceFile
An abstract representation of a source file that provides access to language-neutral features.
|
Class and Description |
---|
AbstractCompiler
An abstract compiler, to help remove the circular dependency of passes on JSCompiler.
|
BasicErrorManager
Deprecated.
|
CheckLevel
Controls checking levels of certain options.
|
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.
|
CompilerOptions
Compiler options
|
DiagnosticType
The type of a compile or analysis error.
|
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.
|
JSError
Compile error description.
|
NodeTraversal
NodeTraversal allows an iteration through the nodes in the parse tree,
and facilitates the optimizations on the parse tree.
|
SortingErrorManager
A customizable error manager that sorts all errors and warnings reported to it, and has
customizable output through the
SortingErrorManager.ErrorReportGenerator interface. |
SourceFile
An abstract representation of a source file that provides access to language-neutral features.
|
TypeMatchingStrategy
The different strategies for matching the
JSType of nodes. |
Copyright © 2009-2020 Google. All Rights Reserved.