Package gw.internal.gosu.parser
Class AsmMethodJavaClassMethod
- java.lang.Object
-
- gw.lang.reflect.java.JavaSourceElement
-
- gw.internal.gosu.parser.AsmMethodJavaClassMethod
-
- All Implemented Interfaces:
IJavaAnnotatedElement
,IJavaClassBytecodeMethod
,IJavaClassMethod
,Serializable
,Comparable<IJavaClassMethod>
public class AsmMethodJavaClassMethod extends JavaSourceElement implements IJavaClassMethod, IJavaClassBytecodeMethod
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AsmMethodJavaClassMethod(AsmMethod method, IModule module)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(IJavaClassMethod o)
boolean
equals(Object o)
IAnnotationInfo
getAnnotation(Class annotationClass)
IAnnotationInfo[]
getDeclaredAnnotations()
Object
getDefaultValue()
IJavaClassInfo
getEnclosingClass()
IJavaClassInfo[]
getExceptionTypes()
IJavaClassType[]
getGenericParameterTypes()
IJavaClassType
getGenericReturnType()
int
getModifiers()
String
getName()
List<Parameter>
getParameterInfos()
IJavaClassInfo[]
getParameterTypes()
IJavaClassInfo
getReturnClassInfo()
IType
getReturnType()
String
getReturnTypeName()
Tree
getTree()
IGenericTypeVariable[]
getTypeVariables(IJavaMethodInfo mi)
int
hashCode()
Object
invoke(Object ctx, Object[] args)
boolean
isAnnotationPresent(Class<? extends Annotation> annotationClass)
boolean
isBridge()
boolean
isSynthetic()
void
setAccessible(boolean accessible)
String
toString()
-
Methods inherited from class gw.lang.reflect.java.JavaSourceElement
findInnerSourceType, getCompilationUnitTree, getDeclaringClass, getEndPosition, getLocationInfo, getSourcePositions, getStartPosition
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface gw.lang.reflect.java.IJavaAnnotatedElement
getLocationInfo
-
-
-
-
Method Detail
-
getReturnType
public IType getReturnType()
- Specified by:
getReturnType
in interfaceIJavaClassMethod
-
getReturnClassInfo
public IJavaClassInfo getReturnClassInfo()
- Specified by:
getReturnClassInfo
in interfaceIJavaClassMethod
-
getName
public String getName()
- Specified by:
getName
in interfaceIJavaClassMethod
-
getParameterInfos
public List<Parameter> getParameterInfos()
- Specified by:
getParameterInfos
in interfaceIJavaClassMethod
-
getEnclosingClass
public IJavaClassInfo getEnclosingClass()
- Specified by:
getEnclosingClass
in interfaceIJavaAnnotatedElement
- Specified by:
getEnclosingClass
in classJavaSourceElement
-
getParameterTypes
public IJavaClassInfo[] getParameterTypes()
- Specified by:
getParameterTypes
in interfaceIJavaClassMethod
-
getModifiers
public int getModifiers()
- Specified by:
getModifiers
in interfaceIJavaClassMethod
-
isSynthetic
public boolean isSynthetic()
- Specified by:
isSynthetic
in interfaceIJavaClassBytecodeMethod
- Specified by:
isSynthetic
in interfaceIJavaClassMethod
-
isBridge
public boolean isBridge()
- Specified by:
isBridge
in interfaceIJavaClassBytecodeMethod
- Specified by:
isBridge
in interfaceIJavaClassMethod
-
getExceptionTypes
public IJavaClassInfo[] getExceptionTypes()
- Specified by:
getExceptionTypes
in interfaceIJavaClassMethod
-
getDefaultValue
public Object getDefaultValue()
- Specified by:
getDefaultValue
in interfaceIJavaClassMethod
-
getReturnTypeName
public String getReturnTypeName()
- Specified by:
getReturnTypeName
in interfaceIJavaClassMethod
-
isAnnotationPresent
public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
- Specified by:
isAnnotationPresent
in interfaceIJavaAnnotatedElement
-
getAnnotation
public IAnnotationInfo getAnnotation(Class annotationClass)
- Specified by:
getAnnotation
in interfaceIJavaAnnotatedElement
-
getDeclaredAnnotations
public IAnnotationInfo[] getDeclaredAnnotations()
- Specified by:
getDeclaredAnnotations
in interfaceIJavaAnnotatedElement
-
setAccessible
public void setAccessible(boolean accessible)
-
invoke
public Object invoke(Object ctx, Object[] args) throws InvocationTargetException, IllegalAccessException
- Specified by:
invoke
in interfaceIJavaClassMethod
- Throws:
InvocationTargetException
IllegalAccessException
-
getTypeVariables
public IGenericTypeVariable[] getTypeVariables(IJavaMethodInfo mi)
- Specified by:
getTypeVariables
in interfaceIJavaClassMethod
-
getGenericParameterTypes
public IJavaClassType[] getGenericParameterTypes()
- Specified by:
getGenericParameterTypes
in interfaceIJavaClassMethod
-
getGenericReturnType
public IJavaClassType getGenericReturnType()
- Specified by:
getGenericReturnType
in interfaceIJavaClassMethod
-
compareTo
public int compareTo(IJavaClassMethod o)
- Specified by:
compareTo
in interfaceComparable<IJavaClassMethod>
-
getTree
public Tree getTree()
- Specified by:
getTree
in classJavaSourceElement
-
-