Package com.google.javascript.jscomp
Class LazyParsedDependencyInfo
- java.lang.Object
-
- com.google.javascript.jscomp.LazyParsedDependencyInfo
-
- All Implemented Interfaces:
DependencyInfo
public class LazyParsedDependencyInfo extends java.lang.Object implements 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
Constructors Constructor Description LazyParsedDependencyInfo(DependencyInfo delegate, JsAst ast, AbstractCompiler compiler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getHasExternsAnnotation()
Whether the file '@externs' annotation.boolean
getHasNoCompileAnnotation()
Whether the file has the '@nocompile' annotation.com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String>
getLoadFlags()
Gets the loading information for this file.java.lang.String
getName()
Gets the unique name / path of this file.java.lang.String
getPathRelativeToClosureBase()
Gets the path of this file relative to Closure's base.js file.com.google.common.collect.ImmutableList<java.lang.String>
getProvides()
Gets the symbols provided by this file.com.google.common.collect.ImmutableList<DependencyInfo.Require>
getRequires()
Gets the symbols required by this file.com.google.common.collect.ImmutableList<java.lang.String>
getTypeRequires()
Gets the symbols type-required by this file (i.e.boolean
isEs6Module()
Whether the symbol is provided by an ES6 moduleboolean
isGoogModule()
Whether the symbol is provided by a goog module-
Methods 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 Detail
-
LazyParsedDependencyInfo
public LazyParsedDependencyInfo(DependencyInfo delegate, JsAst ast, AbstractCompiler compiler)
-
-
Method Detail
-
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
public com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> getLoadFlags()
Description copied from interface:DependencyInfo
Gets the loading information for this file.- Specified by:
getLoadFlags
in interfaceDependencyInfo
-
getName
public java.lang.String getName()
Description copied from interface:DependencyInfo
Gets the unique name / path of this file.- Specified by:
getName
in interfaceDependencyInfo
-
getPathRelativeToClosureBase
public java.lang.String 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
public com.google.common.collect.ImmutableList<DependencyInfo.Require> getRequires()
Description copied from interface:DependencyInfo
Gets the symbols required by this file.- Specified by:
getRequires
in interfaceDependencyInfo
-
getTypeRequires
public com.google.common.collect.ImmutableList<java.lang.String> 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
public com.google.common.collect.ImmutableList<java.lang.String> 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
-
-