Annotation Type SourcePosition


@Retention(SOURCE) public @interface SourcePosition
This annotation is used for an
invalid reference
ITypeManifold
to map a generated Java feature to the corresponding resource file location. If possible, include this annotation for all generated methods and fields, as this annotation is vital for most of the features in the IntelliJ plugin and other IDE tooling.

Note the constant fields mirror the annotation's method names and are used to access the values of the annotation during compile-time. They exist primarily as a stopgap until Java provides method literals to safely access method names...

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The name of the feature
    The location of the resource containing the feature "declaration"
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    What kind of feature is this according to the resource's schema taxonomy?
    int
    The length of the feature declaration
    int
    The line where the feature begins.
    int
    The offset of the feature declaration from the beginning of the file
    The qualified type of the feature