|
Lombok - v0.10.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlombok.core.AnnotationValues.AnnotationValue
public static class AnnotationValues.AnnotationValue
Represents a single method on the annotation class. For example, the value() method on the Getter annotation.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
AnnotationValues.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. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final List<String> raws
public final List<Object> valueGuesses
public final List<Object> expressions
| Constructor Detail |
|---|
public AnnotationValues.AnnotationValue(LombokNode<?,?,?> node,
List<String> raws,
List<Object> expressions,
List<Object> valueGuesses,
boolean isExplicit)
| Method Detail |
|---|
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 String toString()
toString in class Objectpublic boolean isExplicit()
|
Lombok - v0.10.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||