Package com.google.javascript.jscomp
Class LazyParsedDependencyInfo
java.lang.Object
com.google.javascript.jscomp.LazyParsedDependencyInfo
- All Implemented Interfaces:
DependencyInfo
A DependencyInfo class that determines load flags by parsing the AST just-in-time.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.javascript.jscomp.deps.DependencyInfo
DependencyInfo.Require, DependencyInfo.Util
-
Constructor Summary
ConstructorsConstructorDescriptionLazyParsedDependencyInfo
(DependencyInfo delegate, CompilerInput ast, AbstractCompiler compiler) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether the file '@externs' annotation.boolean
Whether the file has the '@nocompile' annotation.Gets the loading information for this file.getName()
Gets the unique name / path of this file.Gets the path of this file relative to Closure's base.js file.com.google.common.collect.ImmutableList
<String> Gets the symbols provided by this file.com.google.common.collect.ImmutableList
<DependencyInfo.Require> Gets the symbols required by this file.com.google.common.collect.ImmutableList
<String> Gets the symbols type-required by this file (i.e.boolean
Whether the symbol is provided by an ES6 moduleboolean
Whether the symbol is provided by a goog moduleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.javascript.jscomp.deps.DependencyInfo
getRequiredSymbols
-
Constructor Details
-
LazyParsedDependencyInfo
public LazyParsedDependencyInfo(DependencyInfo delegate, CompilerInput ast, AbstractCompiler compiler)
-
-
Method Details
-
isEs6Module
public boolean isEs6Module()Description copied from interface:DependencyInfo
Whether the symbol is provided by an ES6 module- Specified by:
isEs6Module
in interfaceDependencyInfo
-
isGoogModule
public boolean isGoogModule()Description copied from interface:DependencyInfo
Whether the symbol is provided by a goog module- Specified by:
isGoogModule
in interfaceDependencyInfo
-
getLoadFlags
Description copied from interface:DependencyInfo
Gets the loading information for this file.- Specified by:
getLoadFlags
in interfaceDependencyInfo
-
getName
Description copied from interface:DependencyInfo
Gets the unique name / path of this file.- Specified by:
getName
in interfaceDependencyInfo
-
getPathRelativeToClosureBase
Description copied from interface:DependencyInfo
Gets the path of this file relative to Closure's base.js file.- Specified by:
getPathRelativeToClosureBase
in interfaceDependencyInfo
-
getRequires
Description copied from interface:DependencyInfo
Gets the symbols required by this file.- Specified by:
getRequires
in interfaceDependencyInfo
-
getTypeRequires
Description copied from interface:DependencyInfo
Gets the symbols type-required by this file (i.e. for typechecking only).- Specified by:
getTypeRequires
in interfaceDependencyInfo
-
getProvides
Description copied from interface:DependencyInfo
Gets the symbols provided by this file.- Specified by:
getProvides
in interfaceDependencyInfo
-
getHasExternsAnnotation
public boolean getHasExternsAnnotation()Description copied from interface:DependencyInfo
Whether the file '@externs' annotation.- Specified by:
getHasExternsAnnotation
in interfaceDependencyInfo
-
getHasNoCompileAnnotation
public boolean getHasNoCompileAnnotation()Description copied from interface:DependencyInfo
Whether the file has the '@nocompile' annotation.- Specified by:
getHasNoCompileAnnotation
in interfaceDependencyInfo
-