Annotation Interface CodeStyle


@Target(TYPE) @Retention(RUNTIME) public @interface CodeStyle
Indicates the exposed code style.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    When exposing this module to the other language this will specify the case conversion to apply when generating the method parameter bindings.
    When exposing this module to the other language this will specify the case conversion to apply when generating the method bindings.
    Indicates the method name prefix.
    When exposing this module to the other language this will specify the case conversion to apply when generating the method parameter bindings.
    Used for converting the case format for properties.
    Used for converting the case format for types.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final CodeStyle
    Implementation of CodeStyle which represents the JVM native code style.
  • Field Details

    • JVM_NATIVE

      static final CodeStyle JVM_NATIVE
      Implementation of CodeStyle which represents the JVM native code style.
  • Element Details

    • methodCaseFormat

      CaseFormat methodCaseFormat
      When exposing this module to the other language this will specify the case conversion to apply when generating the method bindings. By default this is CaseFormat.LOWER_UNDERSCORE
      Returns:
      the CaseFormat to use in conversion
      Default:
      LOWER_UNDERSCORE
    • parameterCaseFormat

      CaseFormat parameterCaseFormat
      When exposing this module to the other language this will specify the case conversion to apply when generating the method parameter bindings. By default this is CaseFormat.LOWER_UNDERSCORE
      Returns:
      the CaseFormat to use in conversion
      Default:
      LOWER_UNDERSCORE
    • constantCaseFormat

      CaseFormat constantCaseFormat
      When exposing this module to the other language this will specify the case conversion to apply when generating the method parameter bindings. By default this is CaseFormat.LOWER_UNDERSCORE
      Returns:
      the CaseFormat to use in conversion
      Default:
      UPPER_UNDERSCORE
    • typeCaseFormat

      CaseFormat typeCaseFormat
      Used for converting the case format for types.
      Returns:
      the type case format
      Default:
      NATURAL
    • propertyCaseFormat

      CaseFormat propertyCaseFormat
      Used for converting the case format for properties.
      Returns:
      the property case format
      Default:
      NATURAL
    • methodPrefix

      String methodPrefix
      Indicates the method name prefix.
      Default:
      ""