Package manifold.rt.api
Annotation Type SourcePosition
-
@Retention(SOURCE) public @interface SourcePosition
This annotation is used for anITypeManifoldto 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...
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringkindWhat kind of feature is this according to the resource's schema taxonomy?intlengthThe length of the feature declarationintlineThe line where the feature begins.intoffsetThe offset of the feature declaration from the beginning of the fileStringtypeThe qualified type of the feature
-
-
-
Field Detail
-
DEFAULT_KIND
static final String DEFAULT_KIND
-
-
-
URL
static final String URL
-
-
-
OFFSET
static final String OFFSET
-
-
-
LENGTH
static final String LENGTH
-
-
-
TYPE
static final String TYPE
-
-
-
FEATURE
static final String FEATURE
-
-
-
KIND
static final String KIND
-
-
-
LINE
static final String LINE
-
-
Element Detail
-
url
String url
The location of the resource containing the feature "declaration"
-
-
-
feature
String feature
The name of the feature
-
-
-
type
String type
The qualified type of the feature- Default:
- ""
-
-
-
kind
String kind
What kind of feature is this according to the resource's schema taxonomy? Optional.- Default:
- "feature"
-
-