Class JBBPExtension
java.lang.Object
com.igormaznitsa.jbbp.plugin.gradle.JBBPExtension
JBBP extension settings.
- Since:
- 1.3.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanGenerate Bin annotations for fieldsbooleanFlag to generate getters and setters in result class, all fields will be protected ones.booleanGenerate methods newInstance in generated classes.Text to be inserted into body of generated class.Text file which content will be injected into body of generated class.Allowed custom types for JBBP scripts.booleanDisable generate fields for target class.booleanMake the result class as abstract one even if it doesn't have abstract methods.booleanMake inner clases non-static onesstatic final StringThe Registered name of the extension.Text to be placed in the head of generated class as comments.Text file which content will be added into head of generated class as comments.Encoding for text input.Interfaces to be implemented by the generated class.Interface names mapped to generated sub-classes, mapped interface will be used in getters instead of the sub-class type.Superclasses to be mapped to generated sub-classesEncoding for text output.Output folder for result classes.Package name to override the package name extracted from JBBP script name.Set of parser flags.org.gradle.api.file.ConfigurableFileTreeSource folder to find JBBP scripts.Super-class for the generated class.Target of translation. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
EXT_NAME
The Registered name of the extension.- See Also:
-
target
Target of translation. -
addGettersSetters
public boolean addGettersSettersFlag to generate getters and setters in result class, all fields will be protected ones. -
doAbstract
public boolean doAbstractMake the result class as abstract one even if it doesn't have abstract methods. -
interfaces
Interfaces to be implemented by the generated class. -
parserFlags
Set of parser flags. -
customTypes
Allowed custom types for JBBP scripts. -
mapSubClassInterfaces
Interface names mapped to generated sub-classes, mapped interface will be used in getters instead of the sub-class type. -
mapSubClassSuperclasses
Superclasses to be mapped to generated sub-classes- Since:
- 1.4.0
-
inEncoding
Encoding for text input. -
outEncoding
Encoding for text output. -
headComment
Text to be placed in the head of generated class as comments. -
headCommentFile
Text file which content will be added into head of generated class as comments. -
customText
Text to be inserted into body of generated class. -
customTextFile
Text file which content will be injected into body of generated class. -
superClass
Super-class for the generated class. -
packageName
Package name to override the package name extracted from JBBP script name. -
disableGenerateFields
public boolean disableGenerateFieldsDisable generate fields for target class.- Since:
- 1.4.0
-
doInternalClassesNonStatic
public boolean doInternalClassesNonStaticMake inner clases non-static ones- Since:
- 1.4.0
-
output
Output folder for result classes. -
source
public org.gradle.api.file.ConfigurableFileTree sourceSource folder to find JBBP scripts. -
addNewInstanceMethods
public boolean addNewInstanceMethodsGenerate methods newInstance in generated classes. -
addBinAnnotations
public boolean addBinAnnotationsGenerate Bin annotations for fields
-
-
Constructor Details
-
JBBPExtension
public JBBPExtension(@Nonnull org.gradle.api.Project project)
-
-
Method Details
-
prepare
public void prepare(@Nonnull org.gradle.api.Project project)
-