Class JBBPExtension

java.lang.Object
com.igormaznitsa.jbbp.plugin.gradle.JBBPExtension

public class JBBPExtension extends Object
JBBP extension settings.
Since:
1.3.0
  • Field Details

    • EXT_NAME

      public static final String EXT_NAME
      The Registered name of the extension.
      See Also:
    • target

      public Target target
      Target of translation.
    • addGettersSetters

      public boolean addGettersSetters
      Flag to generate getters and setters in result class, all fields will be protected ones.
    • doAbstract

      public boolean doAbstract
      Make the result class as abstract one even if it doesn't have abstract methods.
    • interfaces

      public Set<String> interfaces
      Interfaces to be implemented by the generated class.
    • parserFlags

      public Set<ParserFlags> parserFlags
      Set of parser flags.
    • customTypes

      public Set<String> customTypes
      Allowed custom types for JBBP scripts.
    • mapSubClassInterfaces

      public Map<String,String> mapSubClassInterfaces
      Interface names mapped to generated sub-classes, mapped interface will be used in getters instead of the sub-class type.
    • mapSubClassSuperclasses

      public Map<String,String> mapSubClassSuperclasses
      Superclasses to be mapped to generated sub-classes
      Since:
      1.4.0
    • inEncoding

      public String inEncoding
      Encoding for text input.
    • outEncoding

      public String outEncoding
      Encoding for text output.
    • headComment

      public String headComment
      Text to be placed in the head of generated class as comments.
    • headCommentFile

      public File headCommentFile
      Text file which content will be added into head of generated class as comments.
    • customText

      public String customText
      Text to be inserted into body of generated class.
    • customTextFile

      public File customTextFile
      Text file which content will be injected into body of generated class.
    • superClass

      public String superClass
      Super-class for the generated class.
    • packageName

      public String packageName
      Package name to override the package name extracted from JBBP script name.
    • disableGenerateFields

      public boolean disableGenerateFields
      Disable generate fields for target class.
      Since:
      1.4.0
    • doInternalClassesNonStatic

      public boolean doInternalClassesNonStatic
      Make inner clases non-static ones
      Since:
      1.4.0
    • output

      public File output
      Output folder for result classes.
    • source

      public org.gradle.api.file.ConfigurableFileTree source
      Source folder to find JBBP scripts.
    • addNewInstanceMethods

      public boolean addNewInstanceMethods
      Generate methods newInstance in generated classes.
    • addBinAnnotations

      public boolean addBinAnnotations
      Generate 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)