public class SkylarkBuildModule extends AbstractSkylarkFunctions implements SkylarkFunctionModule
native.foo
in build file
extensions and just foo
in build files.Modifier and Type | Field and Description |
---|---|
static SkylarkBuildModule |
BUILD_MODULE |
Constructor and Description |
---|
SkylarkBuildModule() |
Modifier and Type | Method and Description |
---|---|
com.google.devtools.build.lib.syntax.SkylarkList<String> |
glob(com.google.devtools.build.lib.syntax.SkylarkList<String> include,
com.google.devtools.build.lib.syntax.SkylarkList<String> exclude,
Boolean excludeDirectories,
com.google.devtools.build.lib.syntax.FuncallExpression ast,
com.google.devtools.build.lib.syntax.Environment env) |
com.google.devtools.build.lib.packages.Info |
hostInfo() |
Object |
implicitPackageSymbol(String symbol,
Object defaultValue,
com.google.devtools.build.lib.syntax.FuncallExpression ast,
com.google.devtools.build.lib.syntax.Environment env) |
String |
packageName(com.google.devtools.build.lib.syntax.FuncallExpression ast,
com.google.devtools.build.lib.syntax.Environment env) |
String |
repositoryName(com.google.devtools.build.lib.events.Location location,
com.google.devtools.build.lib.syntax.FuncallExpression ast,
com.google.devtools.build.lib.syntax.Environment env) |
Boolean |
ruleExists(String name,
com.google.devtools.build.lib.syntax.FuncallExpression ast,
com.google.devtools.build.lib.syntax.Environment env) |
readConfig
public static final SkylarkBuildModule BUILD_MODULE
public String packageName(com.google.devtools.build.lib.syntax.FuncallExpression ast, com.google.devtools.build.lib.syntax.Environment env) throws com.google.devtools.build.lib.syntax.EvalException
com.google.devtools.build.lib.syntax.EvalException
public String repositoryName(com.google.devtools.build.lib.events.Location location, com.google.devtools.build.lib.syntax.FuncallExpression ast, com.google.devtools.build.lib.syntax.Environment env) throws com.google.devtools.build.lib.syntax.EvalException
com.google.devtools.build.lib.syntax.EvalException
public Boolean ruleExists(String name, com.google.devtools.build.lib.syntax.FuncallExpression ast, com.google.devtools.build.lib.syntax.Environment env) throws com.google.devtools.build.lib.syntax.EvalException
com.google.devtools.build.lib.syntax.EvalException
public com.google.devtools.build.lib.syntax.SkylarkList<String> glob(com.google.devtools.build.lib.syntax.SkylarkList<String> include, com.google.devtools.build.lib.syntax.SkylarkList<String> exclude, Boolean excludeDirectories, com.google.devtools.build.lib.syntax.FuncallExpression ast, com.google.devtools.build.lib.syntax.Environment env) throws com.google.devtools.build.lib.syntax.EvalException, IOException, InterruptedException
com.google.devtools.build.lib.syntax.EvalException
IOException
InterruptedException
public com.google.devtools.build.lib.packages.Info hostInfo()
@Nullable public Object implicitPackageSymbol(String symbol, Object defaultValue, com.google.devtools.build.lib.syntax.FuncallExpression ast, com.google.devtools.build.lib.syntax.Environment env) throws com.google.devtools.build.lib.syntax.EvalException
com.google.devtools.build.lib.syntax.EvalException