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 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.booleanisEs6Module()Whether the symbol is provided by an ES6 modulebooleanisGoogModule()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: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
public com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> getLoadFlags()
Description copied from interface:DependencyInfoGets the loading information for this file.- Specified by:
getLoadFlagsin interfaceDependencyInfo
-
getName
public java.lang.String getName()
Description copied from interface:DependencyInfoGets the unique name / path of this file.- Specified by:
getNamein interfaceDependencyInfo
-
getPathRelativeToClosureBase
public java.lang.String getPathRelativeToClosureBase()
Description copied from interface:DependencyInfoGets the path of this file relative to Closure's base.js file.- Specified by:
getPathRelativeToClosureBasein interfaceDependencyInfo
-
getRequires
public com.google.common.collect.ImmutableList<DependencyInfo.Require> getRequires()
Description copied from interface:DependencyInfoGets the symbols required by this file.- Specified by:
getRequiresin interfaceDependencyInfo
-
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).- Specified by:
getTypeRequiresin interfaceDependencyInfo
-
getProvides
public com.google.common.collect.ImmutableList<java.lang.String> 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
-
-