public static class AnnotationValues.AnnotationValue
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.List<java.lang.Object> |
expressions
A list of the actual expressions.
|
java.util.List<java.lang.String> |
raws
A list of the raw expressions.
|
java.util.List<java.lang.Object> |
valueGuesses
Guesses for each raw expression.
|
Constructor and Description |
---|
AnnotationValue(LombokNode<?,?,?> node,
java.util.List<java.lang.String> raws,
java.util.List<java.lang.Object> expressions,
java.util.List<java.lang.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(java.lang.String message,
int valueIdx)
Override this if you want more specific behaviour (to get the source position just right).
|
void |
setWarning(java.lang.String message,
int valueIdx)
Override this if you want more specific behaviour (to get the source position just right).
|
java.lang.String |
toString() |
public final java.util.List<java.lang.String> raws
public final java.util.List<java.lang.Object> valueGuesses
public final java.util.List<java.lang.Object> expressions
public AnnotationValue(LombokNode<?,?,?> node, java.util.List<java.lang.String> raws, java.util.List<java.lang.Object> expressions, java.util.List<java.lang.Object> valueGuesses, boolean isExplicit)
public void setError(java.lang.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(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
public boolean isExplicit()
Copyright © 2009-2015 The Project Lombok Authors, licensed under the MIT licence.