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 TypeMethodDescriptionbooleanWhether the file '@externs' annotation.booleanWhether 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.booleanWhether the symbol is provided by an ES6 modulebooleanWhether the symbol is provided by a goog moduleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:DependencyInfoWhether the symbol is provided by an ES6 module- Specified by:
isEs6Modulein interfaceDependencyInfo
-
isGoogModule
public boolean isGoogModule()Description copied from interface:DependencyInfoWhether the symbol is provided by a goog module- Specified by:
isGoogModulein interfaceDependencyInfo
-
getLoadFlags
Description copied from interface:DependencyInfoGets the loading information for this file.- Specified by:
getLoadFlagsin interfaceDependencyInfo
-
getName
Description copied from interface:DependencyInfoGets the unique name / path of this file.- Specified by:
getNamein interfaceDependencyInfo
-
getPathRelativeToClosureBase
Description copied from interface:DependencyInfoGets the path of this file relative to Closure's base.js file.- Specified by:
getPathRelativeToClosureBasein interfaceDependencyInfo
-
getRequires
Description copied from interface:DependencyInfoGets the symbols required by this file.- Specified by:
getRequiresin interfaceDependencyInfo
-
getTypeRequires
Description copied from interface:DependencyInfoGets the symbols type-required by this file (i.e. for typechecking only).- Specified by:
getTypeRequiresin interfaceDependencyInfo
-
getProvides
Description copied from interface:DependencyInfoGets the symbols provided by this file.- Specified by:
getProvidesin interfaceDependencyInfo
-
getHasExternsAnnotation
public boolean getHasExternsAnnotation()Description copied from interface:DependencyInfoWhether the file '@externs' annotation.- Specified by:
getHasExternsAnnotationin interfaceDependencyInfo
-
getHasNoCompileAnnotation
public boolean getHasNoCompileAnnotation()Description copied from interface:DependencyInfoWhether the file has the '@nocompile' annotation.- Specified by:
getHasNoCompileAnnotationin interfaceDependencyInfo
-