Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
com.google.javascript.jscomp.deps |
Analyzes information about dependencies between files.
|
com.google.javascript.jscomp.lint | |
com.google.javascript.jscomp.newtypes | |
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.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 js 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 . |
AnonymousFunctionNamingPolicy
Strategies for how to do naming of anonymous functions that occur as
r-values in assignments and variable declarations.
|
AstValidator.ViolationHandler
Violation handler
|
BasicErrorManager
A basic error manager that sorts all errors and warnings reported to it to
generate a sorted report when the
BasicErrorManager.generateReport() method
is called. |
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). |
CallGraph.Callsite
An inner class that represents call sites in the call graph.
|
CallGraph.Function
An inner class that represents functions in the call graph.
|
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 function that will throw an exception when either:
-One or more of its parameters evaluate to false.
|
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.
|
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.
|
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.DependencyMode
How compiler should prune files based on the provide-require dependency graph
|
CompilerOptions.DisposalCheckingPolicy
Policies to determine the disposal checking level.
|
CompilerOptions.Environment
An environment specifies the built-in externs that are loaded for a given
compilation.
|
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.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
Protobuf type
jscomp.ConformanceConfig |
ConformanceConfig.Builder
Protobuf type
jscomp.ConformanceConfig |
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.
|
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 |
GwtProperties
GWT-compatible helper for dealing with Java .properties files.
|
HotSwapCompilerPass
Interface for compiler passes that can be used in a hot-swap fashion.
|
Instrumentation
Protobuf type
jscomp.Instrumentation |
Instrumentation.Builder
Protobuf type
jscomp.Instrumentation |
InstrumentationOrBuilder |
JsAst
Generates an AST for a JavaScript source file.
|
JsAst.RhinoError |
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.
|
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.
|
NameBasedDefinitionProvider
Simple name-based definition gatherer that implements
DefinitionProvider . |
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.modules (and in the future ES6 modules) are entered
and exited.
|
NodeTraversal.AbstractPostOrderCallback
Abstract callback to visit all nodes in postorder.
|
NodeTraversal.Callback
Callback for tree-based traversals
|
NodeTraversal.FunctionCallback
Callback for passes that iterate over a list of functions
|
NodeTraversal.ScopedCallback
Callback that also knows about scope changes
|
NodeUtil.Visitor
Interface for use with the visit method.
|
PassConfig
Pass factories and meta-data for native Compiler passes.
|
PassConfig.State
Intermediate state for a running pass configuration.
|
PassFactory
A factory for creating JSCompiler passes based on the Options
injected.
|
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
|
PropertyRenamingPolicy
Policies to determine how properties should be renamed.
|
ReferenceCollectingCallback.Behavior
Way for callers to add specific behavior during traversal that
utilizes the built-up reference information.
|
ReferenceCollectingCallback.Reference
Represents a single declaration or reference to a variable.
|
ReferenceCollectingCallback.ReferenceCollection
A collection of references.
|
ReferenceCollectingCallback.ReferenceMap |
Region
Source code region.
|
RenamingMap
Interface used by to substitute names.
|
ReplacedStringsDecoder
A decoder for strings encoded by the ReplaceStrings JS compiler pass.
|
Requirement
Protobuf type
jscomp.Requirement |
Requirement.Builder
Protobuf type
jscomp.Requirement |
Requirement.Type
Protobuf enum
jscomp.Requirement.Type |
RequirementOrBuilder |
Result
Compilation results
|
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.
|
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
A simple pair of path prefixes to the desired "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
Several methods in this class, such as
isVar throw an exception when called, and several
methods are currently identical to the ones in Var. |
TypeMatchingStrategy
The different strategies for matching the
TypeI of nodes. |
TypeMatchingStrategy.MatchResult
The result of comparing two different
TypeI instances. |
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 |
---|
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.
|
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.AbstractShallowCallback
Abstract callback to visit all nodes but not traverse into function
bodies.
|
NodeTraversal.Callback
Callback for tree-based traversals
|
Class and Description |
---|
CodingConvention
CodingConvention defines a set of hooks to customize the behavior of the
Compiler for a specific team/company.
|
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.
|
JSError
Compile error description
|
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
|
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
A basic error manager that sorts all errors and warnings reported to it to
generate a sorted report when the
BasicErrorManager.generateReport() method
is called. |
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
|
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
|
SourceFile
An abstract representation of a source file that provides access to language-neutral features.
|
TypeMatchingStrategy
The different strategies for matching the
TypeI of nodes. |
Copyright © 2009-2017 Google. All Rights Reserved.