Annotation Type WrapToScript


@Retention(RUNTIME)
@Target({METHOD,FIELD})
public @interface WrapToScript
Annotation indicating that the annotated method should be wrapped to the target script language. Wrappers add script code that automatically calls the annotated Java method.
  • Optional Element Summary

    Optional Elements
    Modifier and Type Optional Element Description
    String alias
    Defines alias names for the same command.
    String supportedLanguages
    Provide a list of supported script languages.
  • Field Summary

    Fields
    Modifier and Type Field Description
    static String DELIMITER
    Delimiter for alias names.
  • Field Details

  • Element Details

    • alias

      String alias
      Defines alias names for the same command. Names are delimited by ";"
      Default:
      ""
    • supportedLanguages

      String supportedLanguages
      Provide a list of supported script languages. Language names shall match the name field of the scriptType extension point. Multiple languages may be provided via a comma separated list. Explicitly excluding a language is supported via !scriptType. Mixing include and exclude patterns is not supported. By default all languages will be supported.
      Default:
      ""