Package com.google.javascript.jscomp
Class LazyParsedDependencyInfo
- java.lang.Object
-
- com.google.javascript.jscomp.deps.DependencyInfo.Base
-
- com.google.javascript.jscomp.LazyParsedDependencyInfo
-
- All Implemented Interfaces:
DependencyInfo
public class LazyParsedDependencyInfo extends DependencyInfo.Base
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.Base, 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 booleangetHasExternsAnnotation()Whether the file '@externs' annotation.booleangetHasNoCompileAnnotation()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.StringgetName()Gets the unique name / path of this file.java.lang.StringgetPathRelativeToClosureBase()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.-
Methods inherited from class com.google.javascript.jscomp.deps.DependencyInfo.Base
getRequiredSymbols, isModule
-
-
-
-
Constructor Detail
-
LazyParsedDependencyInfo
public LazyParsedDependencyInfo(DependencyInfo delegate, JsAst ast, AbstractCompiler compiler)
-
-
Method Detail
-
getLoadFlags
public com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> getLoadFlags()
Description copied from interface:DependencyInfoGets the loading information for this file.
-
getName
public java.lang.String getName()
Description copied from interface:DependencyInfoGets the unique name / path of this file.
-
getPathRelativeToClosureBase
public java.lang.String getPathRelativeToClosureBase()
Description copied from interface:DependencyInfoGets the path of this file relative to Closure's base.js file.
-
getRequires
public com.google.common.collect.ImmutableList<DependencyInfo.Require> getRequires()
Description copied from interface:DependencyInfoGets the symbols required by this file.
-
getTypeRequires
public com.google.common.collect.ImmutableList<java.lang.String> getTypeRequires()
Description copied from interface:DependencyInfoGets the symbols type-required by this file (i.e. for typechecking only).
-
getProvides
public com.google.common.collect.ImmutableList<java.lang.String> getProvides()
Description copied from interface:DependencyInfoGets the symbols provided by this file.
-
getHasExternsAnnotation
public boolean getHasExternsAnnotation()
Description copied from interface:DependencyInfoWhether the file '@externs' annotation.
-
getHasNoCompileAnnotation
public boolean getHasNoCompileAnnotation()
Description copied from interface:DependencyInfoWhether the file has the '@nocompile' annotation.
-
-