public static class AnnotationValues.AnnotationValue extends Object
Modifier and Type | Field and Description |
---|---|
List<Object> |
expressions
A list of the actual expressions.
|
List<String> |
raws
A list of the raw expressions.
|
List<Object> |
valueGuesses
Guesses for each raw expression.
|
Constructor and Description |
---|
AnnotationValue(LombokNode<?,?,?> node,
List<String> raws,
List<Object> expressions,
List<Object> valueGuesses,
boolean isExplicit)
Like the other constructor, but used for when the annotation method is initialized with an array value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isExplicit() |
void |
setError(String message,
int valueIdx)
Override this if you want more specific behaviour (to get the source position just right).
|
void |
setWarning(String message,
int valueIdx)
Override this if you want more specific behaviour (to get the source position just right).
|
String |
toString() |
public final List<String> raws
public final List<Object> valueGuesses
public void setError(String message, int valueIdx)
message
- English message with the problem.valueIdx
- The index into the values for this annotation key that caused the problem.
-1 for a problem that applies to all values, otherwise the 0-based index into an array of values.
If there is no array for this value (e.g. value=1 instead of value={1,2}), then always -1 or 0.public void setWarning(String message, int valueIdx)
message
- English message with the problem.valueIdx
- The index into the values for this annotation key that caused the problem.
-1 for a problem that applies to all values, otherwise the 0-based index into an array of values.
If there is no array for this value (e.g. value=1 instead of value={1,2}), then always -1 or 0.public boolean isExplicit()
Copyright © 2009-2015 The Project Lombok Authors, licensed under the MIT licence.