Package gw.internal.gosu.parser
Class MethodJavaClassMethod
- java.lang.Object
-
- gw.internal.gosu.parser.MethodJavaClassMethod
-
- All Implemented Interfaces:
IJavaAnnotatedElement,IJavaClassBytecodeMethod,IJavaClassMethod,Serializable,Comparable<IJavaClassMethod>
public class MethodJavaClassMethod extends Object implements IJavaClassMethod, IJavaClassBytecodeMethod
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MethodJavaClassMethod(Method method, IModule module)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(IJavaClassMethod o)booleanequals(Object o)IAnnotationInfogetAnnotation(Class annotationClass)IAnnotationInfo[]getDeclaredAnnotations()ObjectgetDefaultValue()IJavaClassInfogetEnclosingClass()IJavaClassInfo[]getExceptionTypes()IJavaClassType[]getGenericParameterTypes()IJavaClassTypegetGenericReturnType()MethodgetJavaMethod()Class[]getJavaParameterTypes()intgetModifiers()StringgetName()List<Parameter>getParameterInfos()IJavaClassInfo[]getParameterTypes()IJavaClassInfogetReturnClassInfo()ITypegetReturnType()StringgetReturnTypeName()IGenericTypeVariable[]getTypeVariables(IJavaMethodInfo mi)inthashCode()Objectinvoke(Object ctx, Object[] args)booleanisAnnotationPresent(Class<? extends Annotation> annotationClass)booleanisBridge()booleanisSynthetic()voidsetAccessible(boolean accessible)StringtoString()-
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:
getReturnTypein interfaceIJavaClassMethod
-
getReturnClassInfo
public IJavaClassInfo getReturnClassInfo()
- Specified by:
getReturnClassInfoin interfaceIJavaClassMethod
-
getName
public String getName()
- Specified by:
getNamein interfaceIJavaClassMethod
-
getParameterInfos
public List<Parameter> getParameterInfos()
- Specified by:
getParameterInfosin interfaceIJavaClassMethod
-
getEnclosingClass
public IJavaClassInfo getEnclosingClass()
- Specified by:
getEnclosingClassin interfaceIJavaAnnotatedElement
-
getParameterTypes
public IJavaClassInfo[] getParameterTypes()
- Specified by:
getParameterTypesin interfaceIJavaClassMethod
-
getModifiers
public int getModifiers()
- Specified by:
getModifiersin interfaceIJavaClassMethod
-
isSynthetic
public boolean isSynthetic()
- Specified by:
isSyntheticin interfaceIJavaClassBytecodeMethod- Specified by:
isSyntheticin interfaceIJavaClassMethod
-
isBridge
public boolean isBridge()
- Specified by:
isBridgein interfaceIJavaClassBytecodeMethod- Specified by:
isBridgein interfaceIJavaClassMethod
-
getExceptionTypes
public IJavaClassInfo[] getExceptionTypes()
- Specified by:
getExceptionTypesin interfaceIJavaClassMethod
-
getDefaultValue
public Object getDefaultValue()
- Specified by:
getDefaultValuein interfaceIJavaClassMethod
-
getReturnTypeName
public String getReturnTypeName()
- Specified by:
getReturnTypeNamein interfaceIJavaClassMethod
-
isAnnotationPresent
public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
- Specified by:
isAnnotationPresentin interfaceIJavaAnnotatedElement
-
getAnnotation
public IAnnotationInfo getAnnotation(Class annotationClass)
- Specified by:
getAnnotationin interfaceIJavaAnnotatedElement
-
getDeclaredAnnotations
public IAnnotationInfo[] getDeclaredAnnotations()
- Specified by:
getDeclaredAnnotationsin interfaceIJavaAnnotatedElement
-
setAccessible
public void setAccessible(boolean accessible)
-
invoke
public Object invoke(Object ctx, Object[] args) throws InvocationTargetException, IllegalAccessException
- Specified by:
invokein interfaceIJavaClassMethod- Throws:
InvocationTargetExceptionIllegalAccessException
-
getTypeVariables
public IGenericTypeVariable[] getTypeVariables(IJavaMethodInfo mi)
- Specified by:
getTypeVariablesin interfaceIJavaClassMethod
-
getGenericParameterTypes
public IJavaClassType[] getGenericParameterTypes()
- Specified by:
getGenericParameterTypesin interfaceIJavaClassMethod
-
getGenericReturnType
public IJavaClassType getGenericReturnType()
- Specified by:
getGenericReturnTypein interfaceIJavaClassMethod
-
getJavaParameterTypes
public Class[] getJavaParameterTypes()
-
compareTo
public int compareTo(IJavaClassMethod o)
- Specified by:
compareToin interfaceComparable<IJavaClassMethod>
-
getJavaMethod
public Method getJavaMethod()
-
-