Home » openjdk-7 » javax.lang » model » util » [javadoc | source]
javax.lang.model.util
abstract public class: AbstractAnnotationValueVisitor6 [javadoc | source]
java.lang.Object
   javax.lang.model.util.AbstractAnnotationValueVisitor6

All Implemented Interfaces:
    AnnotationValueVisitor

Direct Known Subclasses:
    SimpleAnnotationValueVisitor7, SimpleAnnotationValueVisitor6, AbstractAnnotationValueVisitor7

A skeletal visitor for annotation values with default behavior appropriate for the RELEASE_6 source version.

WARNING: The {@code AnnotationValueVisitor} interface implemented by this class may have methods added to it in the future to accommodate new, currently unknown, language structures added to future versions of the Java™ programming language. Therefore, methods whose names begin with {@code "visit"} may be added to this class in the future; to avoid incompatibilities, classes which extend this class should not declare any instance methods with names beginning with {@code "visit"}.

When such a new visit method is added, the default implementation in this class will be to call the visitUnknown method. A new abstract annotation value visitor class will also be introduced to correspond to the new language level; this visitor will have different default behavior for the visit method in question. When the new visitor is introduced, all or portions of this visitor may be deprecated.

Constructor:
 protected AbstractAnnotationValueVisitor6() 
Method from javax.lang.model.util.AbstractAnnotationValueVisitor6 Summary:
visit,   visit,   visitUnknown
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.lang.model.util.AbstractAnnotationValueVisitor6 Detail:
 public final R visit(AnnotationValue av) 
    Visits an annotation value as if by passing itself to that value's accept method passing {@code null} for the additional parameter. The invocation {@code v.visit(av)} is equivalent to {@code av.accept(v, null)}.
 public final R visit(AnnotationValue av,
    P p) 
    Visits an annotation value as if by passing itself to that value's accept . The invocation {@code v.visit(av)} is equivalent to {@code av.accept(v, p)}.
 public R visitUnknown(AnnotationValue av,
    P p) 
    {@inheritDoc}

    The default implementation of this method in {@code AbstractAnnotationValueVisitor6} will always throw {@code UnknownAnnotationValueException}. This behavior is not required of a subclass.