net.sf.retrotranslator.runtime.impl
Class FieldDescriptor

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.FieldDescriptor
All Implemented Interfaces:
AnnotationVisitor, ClassVisitor, FieldVisitor, MethodVisitor, SignatureVisitor, MemberDescriptor

public class FieldDescriptor
extends AnnotatedElementDescriptor
implements MemberDescriptor

Author:
Taras Puchko

Field Summary
private  ClassDescriptor classDescriptor
           
private  java.lang.String desc
           
private  java.lang.String name
           
private  TypeDescriptor typeDescriptor
           
 
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
FieldDescriptor(ClassDescriptor classDescriptor, java.lang.reflect.Field field)
           
FieldDescriptor(ClassDescriptor classDescriptor, int access, java.lang.String name, java.lang.String desc, java.lang.String signature)
           
 
Method Summary
protected  Annotation_[] createAnnotations(Annotation_[] declaredAnnotations)
           
protected  java.lang.reflect.TypeVariable findTypeVariable(java.lang.String name)
           
 ClassDescriptor getClassDescriptor()
           
 java.lang.String getDesc()
           
 java.lang.reflect.Type getGenericType()
           
static FieldDescriptor getInstance(java.lang.reflect.Field field)
           
 java.lang.String getName()
           
 
Methods inherited from class net.sf.retrotranslator.runtime.impl.AnnotatedElementDescriptor
createAnnotations, createType, createTypes, getAnnotation, getAnnotations, getClassByInternalName, getClassByType, 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, visitClassBound, visitClassType, visitCode, visitEnd, visitEnum, visitExceptionType, visitField, visitFieldInsn, visitFormalTypeParameter, visitIincInsn, visitInnerClass, visitInnerClassType, visitInsn, visitInterface, visitInterfaceBound, 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

name

private java.lang.String name

desc

private java.lang.String desc

classDescriptor

private ClassDescriptor classDescriptor

typeDescriptor

private TypeDescriptor typeDescriptor
Constructor Detail

FieldDescriptor

public FieldDescriptor(ClassDescriptor classDescriptor,
                       int access,
                       java.lang.String name,
                       java.lang.String desc,
                       java.lang.String signature)

FieldDescriptor

public FieldDescriptor(ClassDescriptor classDescriptor,
                       java.lang.reflect.Field field)
Method Detail

getInstance

public static FieldDescriptor getInstance(java.lang.reflect.Field field)

getName

public java.lang.String getName()
Specified by:
getName in interface MemberDescriptor

getDesc

public java.lang.String getDesc()
Specified by:
getDesc in interface MemberDescriptor

getGenericType

public java.lang.reflect.Type getGenericType()

getClassDescriptor

public ClassDescriptor getClassDescriptor()
Specified by:
getClassDescriptor in class AnnotatedElementDescriptor

findTypeVariable

protected java.lang.reflect.TypeVariable findTypeVariable(java.lang.String name)
Specified by:
findTypeVariable in class AnnotatedElementDescriptor

createAnnotations

protected Annotation_[] createAnnotations(Annotation_[] declaredAnnotations)
Specified by:
createAnnotations in class AnnotatedElementDescriptor