Annotation Interface Import


@Retention(RUNTIME) @Target(TYPE) public @interface Import
Import annotation for class to special importing methods scope.
Since:
4.2.4
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Setting the namespace.
    Setting import method scope, default is {ImportScope.Instance, ImportScope.Static}
  • Element Details

    • scopes

      ImportScope[] scopes
      Setting import method scope, default is {ImportScope.Instance, ImportScope.Static}
      Returns:
      the import method scopes array.
      Default:
      {Instance, Static}
    • ns

      String ns
      Setting the namespace.
      Returns:
      the namespace for imported methods.
      Default:
      ""