public class BuckPyFunction extends Object
Description
.Modifier and Type | Field and Description |
---|---|
static String |
BUCK_PY_FUNCTION_TEMPLATE |
static String |
INTERNAL_PROPERTY_NAME_PREFIX
Properties from the JSON produced by
buck.py that start with this prefix do not
correspond to build rule arguments specified by the user. |
static String |
TYPE_PROPERTY_NAME
The name of the property in the JSON produced by
buck.py that identifies the type of
the build rule being defined. |
Constructor and Description |
---|
BuckPyFunction(TypeCoercerFactory typeCoercerFactory) |
Modifier and Type | Method and Description |
---|---|
String |
addDefaultAttributes()
Returns a python string containing all of the default rule parameters that should be made
available to user defined rules in the python build file parser
|
String |
toPythonFunction(RuleType type,
Class<? extends DataTransferObject> dtoClass)
Create a Python function definition for given rule type and parameters described by DTO type.
|
public static final String INTERNAL_PROPERTY_NAME_PREFIX
buck.py
that start with this prefix do not
correspond to build rule arguments specified by the user. Instead, they contain internal-only
metadata, so they should not be printed when the build rule is reproduced.public static final String TYPE_PROPERTY_NAME
buck.py
that identifies the type of
the build rule being defined.public static final String BUCK_PY_FUNCTION_TEMPLATE
public BuckPyFunction(TypeCoercerFactory typeCoercerFactory)
public String toPythonFunction(RuleType type, Class<? extends DataTransferObject> dtoClass)
public String addDefaultAttributes()