public abstract class PackageContext extends Object
Constructor and Description |
---|
PackageContext() |
Modifier and Type | Method and Description |
---|---|
abstract com.google.devtools.build.lib.events.EventHandler |
getEventHandler() |
abstract Globber |
getGlobber()
Returns a globber instance that can resolve paths relative to current package.
|
abstract com.google.common.collect.ImmutableMap<String,Object> |
getImplicitlyLoadedSymbols()
Gets objects that were implciitly loaded
|
abstract com.google.devtools.build.lib.cmdline.PackageIdentifier |
getPackageIdentifier()
Returns a package identifier of the build file that is being parsed.
|
abstract com.google.common.collect.ImmutableMap<String,com.google.common.collect.ImmutableMap<String,String>> |
getRawConfig()
Returns a raw map of configuration options defined in
.buckconfig file and passed
through a --config command line option. |
static PackageContext |
of(Globber globber,
Map<String,? extends com.google.common.collect.ImmutableMap<String,String>> rawConfig,
com.google.devtools.build.lib.cmdline.PackageIdentifier packageIdentifier,
com.google.devtools.build.lib.events.EventHandler eventHandler,
Map<String,? extends Object> implicitlyLoadedSymbols) |
public abstract Globber getGlobber()
public abstract com.google.common.collect.ImmutableMap<String,com.google.common.collect.ImmutableMap<String,String>> getRawConfig()
.buckconfig
file and passed
through a --config
command line option.public abstract com.google.devtools.build.lib.cmdline.PackageIdentifier getPackageIdentifier()
public abstract com.google.devtools.build.lib.events.EventHandler getEventHandler()
public abstract com.google.common.collect.ImmutableMap<String,Object> getImplicitlyLoadedSymbols()
public static PackageContext of(Globber globber, Map<String,? extends com.google.common.collect.ImmutableMap<String,String>> rawConfig, com.google.devtools.build.lib.cmdline.PackageIdentifier packageIdentifier, com.google.devtools.build.lib.events.EventHandler eventHandler, Map<String,? extends Object> implicitlyLoadedSymbols)