net.sf.retrotranslator.runtime.impl
Class GenericDeclarationDescriptor
java.lang.Object
net.sf.retrotranslator.runtime.impl.EmptyVisitor
net.sf.retrotranslator.runtime.impl.AnnotatedElementDescriptor
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
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 |
typeParameters
private LazyList<TypeParameter,java.lang.reflect.TypeVariable> typeParameters
GenericDeclarationDescriptor
public GenericDeclarationDescriptor()
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.