Annotation Interface Namespace


@Retention(RUNTIME) @Target(TYPE) public @interface Namespace
Marks a class as a script namespace. Its Property members are registered under value() as the dotted prefix, e.g. @Namespace("player") + @Property x()player.x. A bare @Namespace (empty value) registers members at the top level (root), e.g. round, format.

Namespaces nest: a @Namespace-annotated class declared inside another composes its prefix onto the parent's — @Namespace("player") containing a @Namespace("position") class puts that class's x() at player.position.x.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • value

      String value
      Default:
      ""