org.androidtransfuse.util
Class ElementVisitorAdaptor<T,R>

Package class diagram package ElementVisitorAdaptor
java.lang.Object
  extended by javax.lang.model.util.AbstractElementVisitor6<R,P>
      extended by javax.lang.model.util.SimpleElementVisitor6<T,R>
          extended by org.androidtransfuse.util.ElementVisitorAdaptor<T,R>
All Implemented Interfaces:
ElementVisitor<T,R>
Direct Known Subclasses:
ASTTypeElementConverter

public class ElementVisitorAdaptor<T,R>
extends SimpleElementVisitor6<T,R>

Adapter to allow the implementing class to not define certain visitors, defaulted to noop behaviour.

Author:
John Ericksen

Field Summary
 
Fields inherited from class javax.lang.model.util.SimpleElementVisitor6
DEFAULT_VALUE
 
Constructor Summary
ElementVisitorAdaptor()
           
 
Method Summary
 T visitExecutable(ExecutableElement executableElement, R r)
           
 T visitPackage(PackageElement packageElement, R r)
           
 T visitType(TypeElement typeElement, R r)
           
 T visitTypeParameter(TypeParameterElement typeParameterElement, R r)
           
 T visitUnknown(Element element, R r)
           
 T visitVariable(VariableElement variableElement, R r)
           
 
Methods inherited from class javax.lang.model.util.SimpleElementVisitor6
defaultAction
 
Methods inherited from class javax.lang.model.util.AbstractElementVisitor6
visit, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementVisitorAdaptor

public ElementVisitorAdaptor()
Method Detail

visitPackage

public T visitPackage(PackageElement packageElement,
                      R r)
Specified by:
visitPackage in interface ElementVisitor<T,R>
Overrides:
visitPackage in class SimpleElementVisitor6<T,R>

visitType

public T visitType(TypeElement typeElement,
                   R r)
Specified by:
visitType in interface ElementVisitor<T,R>
Overrides:
visitType in class SimpleElementVisitor6<T,R>

visitVariable

public T visitVariable(VariableElement variableElement,
                       R r)
Specified by:
visitVariable in interface ElementVisitor<T,R>
Overrides:
visitVariable in class SimpleElementVisitor6<T,R>

visitExecutable

public T visitExecutable(ExecutableElement executableElement,
                         R r)
Specified by:
visitExecutable in interface ElementVisitor<T,R>
Overrides:
visitExecutable in class SimpleElementVisitor6<T,R>

visitTypeParameter

public T visitTypeParameter(TypeParameterElement typeParameterElement,
                            R r)
Specified by:
visitTypeParameter in interface ElementVisitor<T,R>
Overrides:
visitTypeParameter in class SimpleElementVisitor6<T,R>

visitUnknown

public T visitUnknown(Element element,
                      R r)
Specified by:
visitUnknown in interface ElementVisitor<T,R>
Overrides:
visitUnknown in class AbstractElementVisitor6<T,R>


Copyright © 2012. All Rights Reserved.