Class SyntheticJavaMethod
- java.lang.Object
-
- gw.internal.gosu.parser.java.classinfo.SyntheticJavaMethod
-
- All Implemented Interfaces:
IJavaAnnotatedElement,IJavaClassMethod,Serializable,Comparable<IJavaClassMethod>
public class SyntheticJavaMethod extends Object implements IJavaClassMethod
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SyntheticJavaMethod(IJavaClassInfo enclosingclass, IJavaClassInfo returnclassinfo, IJavaClassType returntype, String name, int modifiers, IJavaClassInfo[] params, IJavaClassInfo[] exceptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(IJavaClassMethod o)IAnnotationInfogetAnnotation(Class<? extends Annotation> annotationClass)IAnnotationInfo[]getDeclaredAnnotations()ObjectgetDefaultValue()IJavaClassInfogetEnclosingClass()IJavaClassInfo[]getExceptionTypes()IJavaClassType[]getGenericParameterTypes()IJavaClassTypegetGenericReturnType()intgetModifiers()StringgetName()List<Parameter>getParameterInfos()IJavaClassInfo[]getParameterTypes()IJavaClassInfogetReturnClassInfo()ITypegetReturnType()StringgetReturnTypeName()IGenericTypeVariable[]getTypeVariables(IJavaMethodInfo javaMethodInfo)Objectinvoke(Object ctx, Object[] args)booleanisAnnotationPresent(Class<? extends Annotation> annotationClass)booleanisBridge()booleanisSynthetic()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface gw.lang.reflect.java.IJavaAnnotatedElement
getLocationInfo
-
-
-
-
Constructor Detail
-
SyntheticJavaMethod
public SyntheticJavaMethod(IJavaClassInfo enclosingclass, IJavaClassInfo returnclassinfo, IJavaClassType returntype, String name, int modifiers, IJavaClassInfo[] params, IJavaClassInfo[] exceptions)
-
-
Method Detail
-
getReturnClassInfo
public IJavaClassInfo getReturnClassInfo()
- Specified by:
getReturnClassInfoin interfaceIJavaClassMethod
-
getGenericReturnType
public IJavaClassType getGenericReturnType()
- Specified by:
getGenericReturnTypein interfaceIJavaClassMethod
-
getReturnTypeName
public String getReturnTypeName()
- Specified by:
getReturnTypeNamein interfaceIJavaClassMethod
-
getReturnType
public IType getReturnType()
- Specified by:
getReturnTypein interfaceIJavaClassMethod
-
getGenericParameterTypes
public IJavaClassType[] getGenericParameterTypes()
- Specified by:
getGenericParameterTypesin interfaceIJavaClassMethod
-
getParameterTypes
public IJavaClassInfo[] getParameterTypes()
- Specified by:
getParameterTypesin interfaceIJavaClassMethod
-
getName
public String getName()
- Specified by:
getNamein interfaceIJavaClassMethod
-
getParameterInfos
public List<Parameter> getParameterInfos()
- Specified by:
getParameterInfosin interfaceIJavaClassMethod
-
getModifiers
public int getModifiers()
- Specified by:
getModifiersin interfaceIJavaClassMethod
-
getExceptionTypes
public IJavaClassInfo[] getExceptionTypes()
- Specified by:
getExceptionTypesin interfaceIJavaClassMethod
-
getDefaultValue
public Object getDefaultValue()
- Specified by:
getDefaultValuein interfaceIJavaClassMethod
-
invoke
public Object invoke(Object ctx, Object[] args) throws InvocationTargetException, IllegalAccessException
- Specified by:
invokein interfaceIJavaClassMethod- Throws:
InvocationTargetExceptionIllegalAccessException
-
getTypeVariables
public IGenericTypeVariable[] getTypeVariables(IJavaMethodInfo javaMethodInfo)
- Specified by:
getTypeVariablesin interfaceIJavaClassMethod
-
isSynthetic
public boolean isSynthetic()
- Specified by:
isSyntheticin interfaceIJavaClassMethod
-
isBridge
public boolean isBridge()
- Specified by:
isBridgein interfaceIJavaClassMethod
-
compareTo
public int compareTo(IJavaClassMethod o)
- Specified by:
compareToin interfaceComparable<IJavaClassMethod>
-
isAnnotationPresent
public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
- Specified by:
isAnnotationPresentin interfaceIJavaAnnotatedElement
-
getAnnotation
public IAnnotationInfo getAnnotation(Class<? extends Annotation> annotationClass)
- Specified by:
getAnnotationin interfaceIJavaAnnotatedElement
-
getDeclaredAnnotations
public IAnnotationInfo[] getDeclaredAnnotations()
- Specified by:
getDeclaredAnnotationsin interfaceIJavaAnnotatedElement
-
getEnclosingClass
public IJavaClassInfo getEnclosingClass()
- Specified by:
getEnclosingClassin interfaceIJavaAnnotatedElement
-
-