public class JBBPExtension
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
addBinAnnotations
Generate Bin annotations for fields
|
boolean |
addGettersSetters
Flag to generate getters and setters in result class, all fields will be
protected ones.
|
boolean |
addNewInstanceMethods
Generate methods newInstance in generated classes.
|
java.lang.String |
customText
Text to be inserted into body of generated class.
|
java.io.File |
customTextFile
Text file which content will be injected into body of generated class.
|
java.util.Set<java.lang.String> |
customTypes
Allowed custom types for JBBP scripts.
|
boolean |
disableGenerateFields
Disable generate fields for target class.
|
boolean |
doAbstract
Make the result class as abstract one even if it doesn't have abstract
methods.
|
boolean |
doInternalClassesNonStatic
Make inner clases non-static ones
|
static java.lang.String |
EXT_NAME
The Registered name of the extension.
|
java.lang.String |
headComment
Text to be placed in the head of generated class as comments.
|
java.io.File |
headCommentFile
Text file which content will be added into head of generated class as
comments.
|
java.lang.String |
inEncoding
Encoding for text input.
|
java.util.Set<java.lang.String> |
interfaces
Interfaces to be implemented by the generated class.
|
java.util.Map<java.lang.String,java.lang.String> |
mapSubClassInterfaces
Interface names mapped to generated sub-classes, mapped interface will be
used in getters instead of the sub-class type.
|
java.util.Map<java.lang.String,java.lang.String> |
mapSubClassSuperclasses
Superclasses to be mapped to generated sub-classes
|
java.lang.String |
outEncoding
Encoding for text output.
|
java.io.File |
output
Output folder for result classes.
|
java.lang.String |
packageName
Package name to override the package name extracted from JBBP script name.
|
java.util.Set<ParserFlags> |
parserFlags
Set of parser flags.
|
org.gradle.api.file.ConfigurableFileTree |
source
Source folder to find JBBP scripts.
|
java.lang.String |
superClass
Super-class for the generated class.
|
Target |
target
Target of translation.
|
| Constructor and Description |
|---|
JBBPExtension(org.gradle.api.Project project) |
| Modifier and Type | Method and Description |
|---|---|
void |
prepare(org.gradle.api.Project project) |
public static final java.lang.String EXT_NAME
public Target target
public boolean addGettersSetters
public boolean doAbstract
public java.util.Set<java.lang.String> interfaces
public java.util.Set<ParserFlags> parserFlags
public java.util.Set<java.lang.String> customTypes
public java.util.Map<java.lang.String,java.lang.String> mapSubClassInterfaces
public java.util.Map<java.lang.String,java.lang.String> mapSubClassSuperclasses
public java.lang.String inEncoding
public java.lang.String outEncoding
public java.lang.String headComment
public java.io.File headCommentFile
public java.lang.String customText
public java.io.File customTextFile
public java.lang.String superClass
public java.lang.String packageName
public boolean disableGenerateFields
public boolean doInternalClassesNonStatic
public java.io.File output
public org.gradle.api.file.ConfigurableFileTree source
public boolean addNewInstanceMethods
public boolean addBinAnnotations