Lombok - v0.10.8

lombok.core
Class AnnotationValues.AnnotationValue

java.lang.Object
  extended by lombok.core.AnnotationValues.AnnotationValue
Enclosing class:
AnnotationValues<A extends Annotation>

public static class AnnotationValues.AnnotationValue
extends Object

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

raws

public final List<String> raws
A list of the raw expressions. List is size 1 unless an array is provided.


valueGuesses

public final List<Object> valueGuesses
Guesses for each raw expression. If the raw expression is a literal expression, the guess will likely be right. If not, it'll be wrong.


expressions

public final List<Object> expressions
A list of the actual expressions. List is size 1 unless an array is provided.

Constructor Detail

AnnotationValues.AnnotationValue

public 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 Detail

setError

public void setError(String message,
                     int valueIdx)
Override this if you want more specific behaviour (to get the source position just right).

Parameters:
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.

setWarning

public void setWarning(String message,
                       int valueIdx)
Override this if you want more specific behaviour (to get the source position just right).

Parameters:
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.

toString

public String toString()

Overrides:
toString in class Object

isExplicit

public boolean isExplicit()

Lombok - v0.10.8

Copyright © 2009-2011 The Project Lombok Authors, licensed under the MIT licence.