public abstract class PackageFileManifest extends Object implements ComputeResult, FileManifest
Modifier and Type | Field and Description |
---|---|
static PackageFileManifest |
EMPTY_SINGLETON
A singleton instance of a manifest with an empty package metadata.
|
Constructor and Description |
---|
PackageFileManifest() |
Modifier and Type | Method and Description |
---|---|
abstract com.google.common.collect.ImmutableMap<String,Object> |
getConfigs() |
abstract Optional<com.google.common.collect.ImmutableMap<String,Optional<String>>> |
getEnv() |
abstract com.google.common.collect.ImmutableList<ParsingError> |
getErrors() |
abstract com.google.common.collect.ImmutableSortedSet<String> |
getIncludes() |
abstract PackageMetadata |
getPackage()
Contains the package defined in the build file.
|
static PackageFileManifest |
of(PackageMetadata getPackage,
com.google.common.collect.ImmutableSortedSet<String> includes,
com.google.common.collect.ImmutableMap<String,Object> configs,
Optional<com.google.common.collect.ImmutableMap<String,Optional<String>>> env,
com.google.common.collect.ImmutableList<ParsingError> errors) |
public static final PackageFileManifest EMPTY_SINGLETON
public abstract PackageMetadata getPackage()
public abstract com.google.common.collect.ImmutableSortedSet<String> getIncludes()
getIncludes
in interface FileManifest
public abstract com.google.common.collect.ImmutableMap<String,Object> getConfigs()
getConfigs
in interface FileManifest
public abstract Optional<com.google.common.collect.ImmutableMap<String,Optional<String>>> getEnv()
getEnv
in interface FileManifest
public abstract com.google.common.collect.ImmutableList<ParsingError> getErrors()
getErrors
in interface FileManifest
public static PackageFileManifest of(PackageMetadata getPackage, com.google.common.collect.ImmutableSortedSet<String> includes, com.google.common.collect.ImmutableMap<String,Object> configs, Optional<com.google.common.collect.ImmutableMap<String,Optional<String>>> env, com.google.common.collect.ImmutableList<ParsingError> errors)