Skip to main content

Java language support for ninja-bear

Project description

ninja-bear-language-java

This ninja-bear plugin adds support for the Java programming language.

languages:
  # -------------------------------------------------------------------------
  # Property description for ninja-bear-language-java.
  #
  # language        (required): ninja-bear-language-java or java
  # package         (required): Specifies the config's package name.
  # file_naming     (optional): Specifies the file naming convention (snake |
  #                             screaming_snake | camel | pascal | kebap).
  #                             Defaults to the file-name without the extension.
  # property_naming (optional): Specifies the property naming convention (snake |
  #                             screaming_snake | camel | pascal | kebap).
  # type_naming     (optional): Specifies the naming convention for the generated
  #                             type (snake | screaming_snake | camel | pascal |
  #                             kebap). The default value is language specific.
  # indent          (optional): Specifies the amount of spaces before each
  #                             property. Defaults to 4.
  # transformers    (optional): Specifies a list of transformers (alias) to use.
  # distributors    (optional): Specifies a list of distributors (alias) to use.
  # ignore          (optional): If true, the section gets ignored.
  # -------------------------------------------------------------------------
  - language: ninja-bear-language-java
    package: com.example.testpackage
    property_naming: camel

properties:
  - type: bool
    name: myBoolean
    value: true

  - type: int
    name: myInteger
    value: 142

  - type: float
    name: myFloat
    value: 322f  # Float with float specifier. However, an additional specifier (f) is not required and will be trimmed.

  - type: float
    name: myCombinedFloat
    value: ${myInteger} * ${myFloat}  # Number and boolean combinations get evaluated during the dump process.

  - type: double
    name: myDouble
    value: 233.9

  - type: string
    name: myString
    value: Hello World
    hidden: true  # If a property should act as a helper but should not be written to the generated file, it must be marked as 'hidden'.

  - type: regex
    name: myRegex
    value: Test Reg(E|e)x
    comment: Just another RegEx.  # Variables can be described using the comment property.

  - type: string
    name: mySubstitutedString
    value: Sometimes I just want to scream ${myString}!  # To use the value of another property, simply use its name with ${}. E.g., ${myString}.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ninja_bear_language_java-0.1.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

ninja_bear_language_java-0.1.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file ninja_bear_language_java-0.1.0.tar.gz.

File metadata

File hashes

Hashes for ninja_bear_language_java-0.1.0.tar.gz
Algorithm Hash digest
SHA256 581335d56a46439d7ed58a87723fa4a0335abb76a3ee6b59af91fb882abb863a
MD5 3cdc4ea3cc5bbf168cba2ad098df1675
BLAKE2b-256 2e61ba3abdcbad5e1b1af57641b7b7b4ac742aca26dc977cca151367154ad19b

See more details on using hashes here.

File details

Details for the file ninja_bear_language_java-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ninja_bear_language_java-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3979797a19705beb549cfbf75822bacff2427cf63a156add61ca7944f785f4b3
MD5 6321ead8d6ffd7ce893262caa866009a
BLAKE2b-256 1ce014cdc1fef3e1a9c6e63046a647bb793d5b419f942d1c8f47abeb7d0fa444

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page