@Retention(value=SOURCE) public @interface SourcePosition
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...Modifier and Type | Fields and Description |
---|---|
static String |
DEFAULT_KIND |
static String |
FEATURE |
static String |
KIND |
static String |
LENGTH |
static String |
LINE |
static String |
OFFSET |
static String |
TYPE |
static String |
URL |
Modifier and Type | Required Element and Description |
---|---|
String |
feature
The name of the feature
|
String |
url
The location of the resource containing the feature "declaration"
|
Modifier and Type | Optional Element and Description |
---|---|
String |
kind
What kind of feature is this according to the resource's schema taxonomy?
|
int |
length
The length of the feature declaration
|
int |
line
The line where the feature begins.
|
int |
offset
The offset of the feature declaration from the beginning of the file
|
String |
type
The qualified type of the feature
|
public static final String DEFAULT_KIND
public static final String URL
public static final String OFFSET
public static final String LENGTH
public static final String TYPE
public static final String FEATURE
public static final String KIND
public static final String LINE
public abstract String url
public abstract String feature
public abstract int offset
public abstract String type
public abstract String kind
Copyright © 2024. All rights reserved.