net.sf.retrotranslator.runtime.impl
Class GenericDeclarationDescriptor

java.lang.Object
  extended by net.sf.retrotranslator.runtime.impl.EmptyVisitor
      extended by net.sf.retrotranslator.runtime.impl.AnnotatedElementDescriptor
          extended by net.sf.retrotranslator.runtime.impl.GenericDeclarationDescriptor
All Implemented Interfaces:
AnnotationVisitor, ClassVisitor, FieldVisitor, MethodVisitor, SignatureVisitor
Direct Known Subclasses:
ClassDescriptor, MethodDescriptor

public abstract class GenericDeclarationDescriptor
extends AnnotatedElementDescriptor

Author:
Taras Puchko

Field Summary
private  LazyList<TypeParameter,java.lang.reflect.TypeVariable> typeParameters
           
 
Fields inherited from class net.sf.retrotranslator.runtime.impl.AnnotatedElementDescriptor
access, EMPTY_VISITOR
 
Fields inherited from interface net.sf.retrotranslator.runtime.asm.signature.SignatureVisitor
EXTENDS, INSTANCEOF, SUPER
 
Constructor Summary
GenericDeclarationDescriptor()
           
 
Method Summary
abstract  java.lang.reflect.GenericDeclaration getTarget()
           
 java.lang.reflect.TypeVariable[] getTypeParameters()
           
protected  java.lang.reflect.TypeVariable getTypeVariable(java.lang.String name)
           
 SignatureVisitor visitClassBound()
          Visits the class bound of the last visited formal type parameter.
 void visitFormalTypeParameter(java.lang.String name)
          Visits a formal type parameter.
 SignatureVisitor visitInterfaceBound()
          Visits an interface bound of the last visited formal type parameter.
 
Methods inherited from class net.sf.retrotranslator.runtime.impl.AnnotatedElementDescriptor
createAnnotations, createAnnotations, createType, createTypes, findTypeVariable, getAnnotation, getAnnotations, getClassByInternalName, getClassByType, getClassDescriptor, getDeclaredAnnotations, getLazyList, getLazyType, isAccess, isAnnotationPresent, resolveValue, visitAnnotation
 
Methods inherited from class net.sf.retrotranslator.runtime.impl.EmptyVisitor
visit, visit, visitAnnotation, visitAnnotationDefault, visitArray, visitArrayType, visitAttribute, visitBaseType, visitClassType, visitCode, visitEnd, visitEnum, visitExceptionType, visitField, visitFieldInsn, visitIincInsn, visitInnerClass, visitInnerClassType, visitInsn, visitInterface, visitIntInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLookupSwitchInsn, visitMaxs, visitMethod, visitMethodInsn, visitMultiANewArrayInsn, visitOuterClass, visitParameterAnnotation, visitParameterType, visitReturnType, visitSource, visitSuperclass, visitTableSwitchInsn, visitTryCatchBlock, visitTypeArgument, visitTypeArgument, visitTypeInsn, visitTypeVariable, visitVarInsn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

typeParameters

private LazyList<TypeParameter,java.lang.reflect.TypeVariable> typeParameters
Constructor Detail

GenericDeclarationDescriptor

public GenericDeclarationDescriptor()
Method Detail

getTypeVariable

protected java.lang.reflect.TypeVariable getTypeVariable(java.lang.String name)

getTarget

public abstract java.lang.reflect.GenericDeclaration getTarget()

getTypeParameters

public java.lang.reflect.TypeVariable[] getTypeParameters()

visitFormalTypeParameter

public void visitFormalTypeParameter(java.lang.String name)
Description copied from interface: SignatureVisitor
Visits a formal type parameter.

Specified by:
visitFormalTypeParameter in interface SignatureVisitor
Overrides:
visitFormalTypeParameter in class EmptyVisitor
Parameters:
name - the name of the formal parameter.

visitClassBound

public SignatureVisitor visitClassBound()
Description copied from interface: SignatureVisitor
Visits the class bound of the last visited formal type parameter.

Specified by:
visitClassBound in interface SignatureVisitor
Overrides:
visitClassBound in class EmptyVisitor
Returns:
a non null visitor to visit the signature of the class bound.

visitInterfaceBound

public SignatureVisitor visitInterfaceBound()
Description copied from interface: SignatureVisitor
Visits an interface bound of the last visited formal type parameter.

Specified by:
visitInterfaceBound in interface SignatureVisitor
Overrides:
visitInterfaceBound in class EmptyVisitor
Returns:
a non null visitor to visit the signature of the interface bound.