This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.lang.model.util
class AbstractElementVisitor6

java.lang.Object extended by javax.lang.model.util.AbstractElementVisitor6
All Implemented Interfaces:
ElementVisitor
Direct Known Subclasses:
ElementScanner6, SimpleElementVisitor6

public abstract class AbstractElementVisitor6
extends Object
implements ElementVisitor

A skeletal visitor of program elements with default behavior appropriate for the {@link SourceVersion#RELEASE_6 RELEASE_6} source version.

WARNING: The {@code ElementVisitor} 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 {@link #visitUnknown visitUnknown} method. A new abstract element 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 Summary
protected

          Constructor for concrete subclasses to call.
 
Method Summary
 Object

          Visits any program element as if by passing itself to that element's javax.lang.model.element.Element.accept method and passing for the additional parameter.
 Object

          Visits any program element as if by passing itself to that element's javax.lang.model.element.Element.accept method.
 Object

          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractElementVisitor6

protected AbstractElementVisitor6()
Constructor for concrete subclasses to call.

Method Detail

visit

public final Object visit(Element e)
Visits any program element as if by passing itself to that element's {@link Element#accept accept} method and passing {@code null} for the additional parameter. The invocation {@code v.visit(elem)} is equivalent to {@code elem.accept(v, null)}.

Parameters:
e - the element to visit
Returns:
a visitor-specified result

visit

public final Object visit(Element e,
                          Object p)
Visits any program element as if by passing itself to that element's {@link Element#accept accept} method. The invocation {@code v.visit(elem)} is equivalent to {@code elem.accept(v, p)}.

Parameters:
e - the element to visit
p - a visitor-specified parameter
Returns:
a visitor-specified result

visitUnknown

public Object visitUnknown(Element e,
                           Object p)
{@inheritDoc}

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

Parameters:
e - the element to visit
p - a visitor-specified parameter
Returns:
a visitor-specified result


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.