|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.retrotranslator.runtime.impl.EmptyVisitor
net.sf.retrotranslator.runtime.impl.AnnotatedElementDescriptor
net.sf.retrotranslator.runtime.impl.GenericDeclarationDescriptor
net.sf.retrotranslator.runtime.impl.MethodDescriptor
public class MethodDescriptor
Field Summary | |
---|---|
private ClassDescriptor |
classDescriptor
|
private LazyValue<java.lang.Class,java.lang.reflect.Constructor> |
constructor
|
private LazyValue<java.lang.Object,java.lang.Object> |
defaultValue
|
private java.lang.String |
desc
|
private LazyList<TypeDescriptor,java.lang.reflect.Type> |
genericExceptionTypes
|
private LazyList<TypeDescriptor,java.lang.reflect.Type> |
genericParameterTypes
|
private LazyValue<TypeDescriptor,java.lang.reflect.Type> |
genericReturnType
|
private LazyValue<java.lang.Class,java.lang.reflect.Method> |
method
|
private java.lang.String |
name
|
private LazyList<java.util.List<AnnotationValue>,Annotation_[]> |
parameterAnnotations
|
private LazyValue<java.lang.String,java.lang.Class> |
returnType
|
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 | |
---|---|
MethodDescriptor(ClassDescriptor classDescriptor,
int access,
java.lang.String name,
java.lang.String desc,
java.lang.String signature)
|
Method Summary | |
---|---|
protected Annotation_[] |
createAnnotations(Annotation_[] declaredAnnotations)
|
private LazyValue<java.lang.Class,java.lang.reflect.Constructor> |
createConstructor()
|
private LazyValue<java.lang.Class,java.lang.reflect.Method> |
createMethod()
|
private LazyList<java.util.List<AnnotationValue>,Annotation_[]> |
createParameterAnnotations()
|
private LazyValue<java.lang.String,java.lang.Class> |
createReturnType()
|
protected java.lang.reflect.TypeVariable |
findTypeVariable(java.lang.String name)
|
ClassDescriptor |
getClassDescriptor()
|
java.lang.reflect.Constructor |
getConstructor()
|
java.lang.Object |
getDefaultValue()
|
java.lang.String |
getDesc()
|
java.lang.reflect.Type[] |
getGenericExceptionTypes()
|
java.lang.reflect.Type[] |
getGenericParameterTypes()
|
java.lang.reflect.Type |
getGenericReturnType()
|
static MethodDescriptor |
getInstance(java.lang.reflect.Constructor constructor)
|
static MethodDescriptor |
getInstance(java.lang.reflect.Method method)
|
java.lang.reflect.Method |
getMethod()
|
java.lang.String |
getName()
|
Annotation_[][] |
getParameterAnnotations()
|
java.lang.Class |
getReturnType()
|
java.lang.reflect.GenericDeclaration |
getTarget()
|
private void |
setDefaultValue(java.lang.Object o)
|
void |
visit(java.lang.String name,
java.lang.Object value)
Visits a primitive value of the annotation. |
AnnotationVisitor |
visitAnnotation(java.lang.String name,
java.lang.String desc)
Visits a nested annotation value of the annotation. |
AnnotationVisitor |
visitArray(java.lang.String name)
Visits an array value of the annotation. |
void |
visitEnum(java.lang.String name,
java.lang.String desc,
java.lang.String value)
Visits an enumeration value of the annotation. |
SignatureVisitor |
visitExceptionType()
Visits the type of a method exception. |
AnnotationVisitor |
visitParameterAnnotation(int parameter,
java.lang.String desc,
boolean visible)
Visits an annotation of a parameter this method. |
SignatureVisitor |
visitParameterType()
Visits the type of a method parameter. |
SignatureVisitor |
visitReturnType()
Visits the return type of the method. |
Methods inherited from class net.sf.retrotranslator.runtime.impl.GenericDeclarationDescriptor |
---|
getTypeParameters, getTypeVariable, visitClassBound, visitFormalTypeParameter, visitInterfaceBound |
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, visitAnnotationDefault, visitArrayType, visitAttribute, visitBaseType, visitClassType, visitCode, visitEnd, visitField, visitFieldInsn, visitIincInsn, visitInnerClass, visitInnerClassType, visitInsn, visitInterface, visitIntInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLookupSwitchInsn, visitMaxs, visitMethod, visitMethodInsn, visitMultiANewArrayInsn, visitOuterClass, 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 |
---|
private java.lang.String name
private java.lang.String desc
private ClassDescriptor classDescriptor
private LazyValue<java.lang.Class,java.lang.reflect.Method> method
private LazyValue<java.lang.String,java.lang.Class> returnType
private LazyValue<java.lang.Object,java.lang.Object> defaultValue
private LazyValue<java.lang.Class,java.lang.reflect.Constructor> constructor
private LazyValue<TypeDescriptor,java.lang.reflect.Type> genericReturnType
private LazyList<TypeDescriptor,java.lang.reflect.Type> genericParameterTypes
private LazyList<TypeDescriptor,java.lang.reflect.Type> genericExceptionTypes
private LazyList<java.util.List<AnnotationValue>,Annotation_[]> parameterAnnotations
Constructor Detail |
---|
public MethodDescriptor(ClassDescriptor classDescriptor, int access, java.lang.String name, java.lang.String desc, java.lang.String signature)
Method Detail |
---|
private LazyValue<java.lang.String,java.lang.Class> createReturnType()
private LazyValue<java.lang.Class,java.lang.reflect.Constructor> createConstructor()
private LazyValue<java.lang.Class,java.lang.reflect.Method> createMethod()
public java.lang.String getName()
getName
in interface MemberDescriptor
public java.lang.String getDesc()
getDesc
in interface MemberDescriptor
public java.lang.Class getReturnType()
public java.lang.Object getDefaultValue()
public static MethodDescriptor getInstance(java.lang.reflect.Method method)
public static MethodDescriptor getInstance(java.lang.reflect.Constructor constructor)
public java.lang.reflect.GenericDeclaration getTarget()
getTarget
in class GenericDeclarationDescriptor
public java.lang.reflect.Method getMethod()
public java.lang.reflect.Constructor getConstructor()
public ClassDescriptor getClassDescriptor()
getClassDescriptor
in class AnnotatedElementDescriptor
protected java.lang.reflect.TypeVariable findTypeVariable(java.lang.String name)
findTypeVariable
in class AnnotatedElementDescriptor
public Annotation_[][] getParameterAnnotations()
private LazyList<java.util.List<AnnotationValue>,Annotation_[]> createParameterAnnotations()
public java.lang.reflect.Type getGenericReturnType()
public java.lang.reflect.Type[] getGenericParameterTypes()
public java.lang.reflect.Type[] getGenericExceptionTypes()
protected Annotation_[] createAnnotations(Annotation_[] declaredAnnotations)
createAnnotations
in class AnnotatedElementDescriptor
public AnnotationVisitor visitParameterAnnotation(int parameter, java.lang.String desc, boolean visible)
MethodVisitor
visitParameterAnnotation
in interface MethodVisitor
visitParameterAnnotation
in class EmptyVisitor
parameter
- the parameter index.desc
- the class descriptor of the annotation class.visible
- true if the annotation is visible at runtime.
public void visit(java.lang.String name, java.lang.Object value)
AnnotationVisitor
visit
in interface AnnotationVisitor
visit
in class EmptyVisitor
name
- the value name.value
- the actual value, whose type must be Byte
,
Boolean
, Character
, Short
,
Integer
, Long
, Float
, Double
,
String
or Type
.public void visitEnum(java.lang.String name, java.lang.String desc, java.lang.String value)
AnnotationVisitor
visitEnum
in interface AnnotationVisitor
visitEnum
in class EmptyVisitor
name
- the value name.desc
- the class descriptor of the enumeration class.value
- the actual enumeration value.public AnnotationVisitor visitAnnotation(java.lang.String name, java.lang.String desc)
AnnotationVisitor
visitAnnotation
in interface AnnotationVisitor
visitAnnotation
in class EmptyVisitor
name
- the value name.desc
- the class descriptor of the nested annotation class.
public AnnotationVisitor visitArray(java.lang.String name)
AnnotationVisitor
visitArray
in interface AnnotationVisitor
visitArray
in class EmptyVisitor
name
- the value name.
public SignatureVisitor visitParameterType()
SignatureVisitor
visitParameterType
in interface SignatureVisitor
visitParameterType
in class EmptyVisitor
public SignatureVisitor visitReturnType()
SignatureVisitor
visitReturnType
in interface SignatureVisitor
visitReturnType
in class EmptyVisitor
public SignatureVisitor visitExceptionType()
SignatureVisitor
visitExceptionType
in interface SignatureVisitor
visitExceptionType
in class EmptyVisitor
private void setDefaultValue(java.lang.Object o)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |