Class SyntheticJavaMethod
- java.lang.Object
-
- gw.internal.gosu.parser.java.classinfo.SyntheticJavaMethod
-
- All Implemented Interfaces:
IJavaAnnotatedElement,IJavaClassMethod,java.io.Serializable,java.lang.Comparable<IJavaClassMethod>
public class SyntheticJavaMethod extends java.lang.Object implements IJavaClassMethod
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private IJavaClassInfo_enclosingClassprivate IJavaClassInfo[]_exceptionsprivate int_modifiersprivate java.lang.String_nameprivate IJavaClassInfo[]_paramsprivate IJavaClassInfo_returnClassInfoprivate IJavaClassType_returnType
-
Constructor Summary
Constructors Constructor Description SyntheticJavaMethod(IJavaClassInfo enclosingclass, IJavaClassInfo returnclassinfo, IJavaClassType returntype, java.lang.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(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)Returns this element's annotation for the specified type if such an annotation is present, else null.IAnnotationInfo[]getDeclaredAnnotations()Returns all annotations that are directly present on this element.java.lang.ObjectgetDefaultValue()IJavaClassInfogetEnclosingClass()IJavaClassInfo[]getExceptionTypes()IJavaClassType[]getGenericParameterTypes()IJavaClassTypegetGenericReturnType()intgetModifiers()java.lang.StringgetName()java.util.List<Parameter>getParameterInfos()IJavaClassInfo[]getParameterTypes()IJavaClassInfogetReturnClassInfo()ITypegetReturnType()java.lang.StringgetReturnTypeName()IGenericTypeVariable[]getTypeVariables(IJavaMethodInfo javaMethodInfo)java.lang.Objectinvoke(java.lang.Object ctx, java.lang.Object[] args)booleanisAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)Returns true if an annotation for the specified type is present on this element, else false.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
-
-
-
-
Field Detail
-
_enclosingClass
private IJavaClassInfo _enclosingClass
-
_returnClassInfo
private IJavaClassInfo _returnClassInfo
-
_returnType
private IJavaClassType _returnType
-
_name
private java.lang.String _name
-
_modifiers
private int _modifiers
-
_params
private IJavaClassInfo[] _params
-
_exceptions
private IJavaClassInfo[] _exceptions
-
-
Constructor Detail
-
SyntheticJavaMethod
public SyntheticJavaMethod(IJavaClassInfo enclosingclass, IJavaClassInfo returnclassinfo, IJavaClassType returntype, java.lang.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 java.lang.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 java.lang.String getName()
- Specified by:
getNamein interfaceIJavaClassMethod
-
getParameterInfos
public java.util.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 java.lang.Object getDefaultValue()
- Specified by:
getDefaultValuein interfaceIJavaClassMethod
-
invoke
public java.lang.Object invoke(java.lang.Object ctx, java.lang.Object[] args) throws java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessException- Specified by:
invokein interfaceIJavaClassMethod- Throws:
java.lang.reflect.InvocationTargetExceptionjava.lang.IllegalAccessException
-
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 interfacejava.lang.Comparable<IJavaClassMethod>
-
isAnnotationPresent
public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
Description copied from interface:IJavaAnnotatedElementReturns true if an annotation for the specified type is present on this element, else false. This method is designed primarily for convenient access to marker annotations.- Specified by:
isAnnotationPresentin interfaceIJavaAnnotatedElement- Parameters:
annotationClass- the Class object corresponding to the annotation type- Returns:
- true if an annotation for the specified annotation type is present on this element, else false
-
getAnnotation
public IAnnotationInfo getAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
Description copied from interface:IJavaAnnotatedElementReturns this element's annotation for the specified type if such an annotation is present, else null.- Specified by:
getAnnotationin interfaceIJavaAnnotatedElement- Parameters:
annotationClass- the Class object corresponding to the annotation type- Returns:
- this element's annotation for the specified annotation type if present on this element, else null
-
getDeclaredAnnotations
public IAnnotationInfo[] getDeclaredAnnotations()
Description copied from interface:IJavaAnnotatedElementReturns all annotations that are directly present on this element. Unlike the other methods in this interface, this method ignores inherited annotations. (Returns an array of length zero if no annotations are directly present on this element.) The caller of this method is free to modify the returned array; it will have no effect on the arrays returned to other callers.- Specified by:
getDeclaredAnnotationsin interfaceIJavaAnnotatedElement- Returns:
- All annotations directly present on this element
-
getEnclosingClass
public IJavaClassInfo getEnclosingClass()
- Specified by:
getEnclosingClassin interfaceIJavaAnnotatedElement
-
-