com.sun.istack.tools
Class APTTypeVisitor<T,P>

java.lang.Object
  extended by com.sun.istack.tools.APTTypeVisitor<T,P>

public abstract class APTTypeVisitor<T,P>
extends java.lang.Object

Visitor that works on APT TypeMirror and computes a value.

This visitor takes a parameter 'P' so that visitor code can be made stateless.

Author:
Kohsuke Kawaguchi

Constructor Summary
APTTypeVisitor()
           
 
Method Summary
 T apply(com.sun.mirror.type.TypeMirror type, P param)
           
protected abstract  T onArrayType(com.sun.mirror.type.ArrayType type, P param)
           
protected abstract  T onClassType(com.sun.mirror.type.ClassType type, P param)
           
protected abstract  T onInterfaceType(com.sun.mirror.type.InterfaceType type, P param)
           
protected abstract  T onPrimitiveType(com.sun.mirror.type.PrimitiveType type, P param)
           
protected abstract  T onTypeVariable(com.sun.mirror.type.TypeVariable type, P param)
           
protected abstract  T onVoidType(com.sun.mirror.type.VoidType type, P param)
           
protected abstract  T onWildcard(com.sun.mirror.type.WildcardType type, P param)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

APTTypeVisitor

public APTTypeVisitor()
Method Detail

apply

public final T apply(com.sun.mirror.type.TypeMirror type,
                     P param)

onPrimitiveType

protected abstract T onPrimitiveType(com.sun.mirror.type.PrimitiveType type,
                                     P param)

onArrayType

protected abstract T onArrayType(com.sun.mirror.type.ArrayType type,
                                 P param)

onClassType

protected abstract T onClassType(com.sun.mirror.type.ClassType type,
                                 P param)

onInterfaceType

protected abstract T onInterfaceType(com.sun.mirror.type.InterfaceType type,
                                     P param)

onTypeVariable

protected abstract T onTypeVariable(com.sun.mirror.type.TypeVariable type,
                                    P param)

onVoidType

protected abstract T onVoidType(com.sun.mirror.type.VoidType type,
                                P param)

onWildcard

protected abstract T onWildcard(com.sun.mirror.type.WildcardType type,
                                P param)