Package gw.lang.reflect.java.asm
Class AsmMethod
- java.lang.Object
-
- gw.lang.reflect.java.asm.AsmMethod
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<AsmAnnotation>_annotationsprivate boolean_bGenericprivate java.lang.Object_defaultAnnoValueprivate java.util.List<AsmType>_exceptionsprivate java.util.List<AsmType>_genericExceptionsprivate java.util.List<AsmType>_genericParametersprivate AsmType_genericReturnTypeprivate int_iLineprivate AsmType_methodTypeprivate int_modifiersprivate AsmClass_ownerprivate java.util.List<AsmAnnotation>[]_paramAnnotationsprivate java.util.List<AsmType>_parametersprivate java.util.List<Parameter>_paramInfosprivate AsmType_returnType
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAnnotation(AsmAnnotation asmAnnotation)voidaddParameterAnnotation(int iParam, AsmAnnotation asmAnnotation)private voidassignExceptions(java.lang.String[] exceptions)(package private) voidassignLineNumber(int iLine)(package private) voidassignParameter(java.lang.String name, int access)private voidassignTypeFromDesc(java.lang.String desc)booleanequals(java.lang.Object o)AsmTypefindTypeVariable(java.lang.String tv)AsmAnnotationgetAnnotation(java.lang.Class annotationClass)java.lang.ObjectgetAnnotationDefaultValue()java.util.List<AsmAnnotation>getAnnotations()AsmClassgetDeclaringClass()java.util.List<AsmType>getExceptions()java.util.List<AsmType>getGenericExceptions()java.util.List<AsmType>getGenericParameters()AsmTypegetGenericReturnType()intgetLineNumber()AsmTypegetMethodType()intgetModifiers()java.lang.StringgetName()java.util.List<AsmAnnotation>[]getParameterAnnotations()java.util.List<Parameter>getParameterInfos()java.util.List<AsmType>getParameters()AsmTypegetReturnType()inthashCode()(package private) voidinitGenericExceptions()(package private) voidinitGenericReturnType()booleanisAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)booleanisBridge()booleanisConstructor()booleanisGeneric()booleanisSynthetic()private java.lang.StringmakeParameterString()private java.lang.StringmakeTypeVarsString()voidsetAnnotationDefaultValue(java.lang.Object value)voidsetGeneric()(package private) voidsetReturnType(AsmType returnType)java.lang.StringtoString()voidupdate(java.util.List<DeclarationPartSignatureVisitor> paramTypes, DeclarationPartSignatureVisitor returnType, java.util.List<DeclarationPartSignatureVisitor> exceptionTypes)
-
-
-
Field Detail
-
_methodType
private AsmType _methodType
-
_modifiers
private int _modifiers
-
_returnType
private AsmType _returnType
-
_genericReturnType
private AsmType _genericReturnType
-
_parameters
private java.util.List<AsmType> _parameters
-
_paramInfos
private java.util.List<Parameter> _paramInfos
-
_genericParameters
private java.util.List<AsmType> _genericParameters
-
_exceptions
private java.util.List<AsmType> _exceptions
-
_genericExceptions
private java.util.List<AsmType> _genericExceptions
-
_annotations
private java.util.List<AsmAnnotation> _annotations
-
_paramAnnotations
private java.util.List<AsmAnnotation>[] _paramAnnotations
-
_owner
private AsmClass _owner
-
_bGeneric
private boolean _bGeneric
-
_defaultAnnoValue
private java.lang.Object _defaultAnnoValue
-
_iLine
private int _iLine
-
-
Constructor Detail
-
AsmMethod
public AsmMethod(AsmClass owner, int access, java.lang.String name, java.lang.String desc, java.lang.String[] exceptions)
-
-
Method Detail
-
update
public void update(java.util.List<DeclarationPartSignatureVisitor> paramTypes, DeclarationPartSignatureVisitor returnType, java.util.List<DeclarationPartSignatureVisitor> exceptionTypes)
-
getName
public java.lang.String getName()
-
getMethodType
public AsmType getMethodType()
-
getModifiers
public int getModifiers()
-
getParameters
public java.util.List<AsmType> getParameters()
-
getGenericParameters
public java.util.List<AsmType> getGenericParameters()
-
getReturnType
public AsmType getReturnType()
-
setReturnType
void setReturnType(AsmType returnType)
-
getGenericReturnType
public AsmType getGenericReturnType()
-
initGenericReturnType
void initGenericReturnType()
-
getDeclaringClass
public AsmClass getDeclaringClass()
-
setGeneric
public void setGeneric()
- Specified by:
setGenericin interfaceIGeneric
-
isSynthetic
public boolean isSynthetic()
-
isBridge
public boolean isBridge()
-
isConstructor
public boolean isConstructor()
-
getExceptions
public java.util.List<AsmType> getExceptions()
-
getGenericExceptions
public java.util.List<AsmType> getGenericExceptions()
-
initGenericExceptions
void initGenericExceptions()
-
getAnnotations
public java.util.List<AsmAnnotation> getAnnotations()
-
getParameterAnnotations
public java.util.List<AsmAnnotation>[] getParameterAnnotations()
-
getAnnotationDefaultValue
public java.lang.Object getAnnotationDefaultValue()
-
setAnnotationDefaultValue
public void setAnnotationDefaultValue(java.lang.Object value)
-
isAnnotationPresent
public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
-
getAnnotation
public AsmAnnotation getAnnotation(java.lang.Class annotationClass)
-
assignExceptions
private void assignExceptions(java.lang.String[] exceptions)
-
assignTypeFromDesc
private void assignTypeFromDesc(java.lang.String desc)
-
addAnnotation
public void addAnnotation(AsmAnnotation asmAnnotation)
-
addParameterAnnotation
public void addParameterAnnotation(int iParam, AsmAnnotation asmAnnotation)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
makeParameterString
private java.lang.String makeParameterString()
-
makeTypeVarsString
private java.lang.String makeTypeVarsString()
-
assignLineNumber
void assignLineNumber(int iLine)
-
getLineNumber
public int getLineNumber()
-
findTypeVariable
public AsmType findTypeVariable(java.lang.String tv)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
assignParameter
void assignParameter(java.lang.String name, int access)
-
getParameterInfos
public java.util.List<Parameter> getParameterInfos()
-
-