Interface DependencyInfo
-
- All Known Implementing Classes:
CompilerInput
,DependencyInfo.Base
,JSChunk
,LazyParsedDependencyInfo
,SimpleDependencyInfo
public interface DependencyInfo
A data structure for JS dependency information for a single .js file.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
DependencyInfo.Base
Abstract base implementation that defines derived accessors such asDependencyInfo.Base.isModule()
.static class
DependencyInfo.Require
A dependency link between two files, e.g.static class
DependencyInfo.Util
Utility methods.
-
Method Summary
All Methods Instance Methods Abstract 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<java.lang.String>
getRequiredSymbols()
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
isModule()
Whether the symbol is provided by a module
-
-
-
Method Detail
-
getName
java.lang.String getName()
Gets the unique name / path of this file.
-
getPathRelativeToClosureBase
java.lang.String getPathRelativeToClosureBase()
Gets the path of this file relative to Closure's base.js file.
-
getProvides
com.google.common.collect.ImmutableList<java.lang.String> getProvides()
Gets the symbols provided by this file.
-
getRequires
com.google.common.collect.ImmutableList<DependencyInfo.Require> getRequires()
Gets the symbols required by this file.
-
getRequiredSymbols
com.google.common.collect.ImmutableList<java.lang.String> getRequiredSymbols()
-
getTypeRequires
com.google.common.collect.ImmutableList<java.lang.String> getTypeRequires()
Gets the symbols type-required by this file (i.e. for typechecking only).
-
getLoadFlags
com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> getLoadFlags()
Gets the loading information for this file.
-
isModule
boolean isModule()
Whether the symbol is provided by a module
-
getHasExternsAnnotation
boolean getHasExternsAnnotation()
Whether the file '@externs' annotation.
-
getHasNoCompileAnnotation
boolean getHasNoCompileAnnotation()
Whether the file has the '@nocompile' annotation.
-
-