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:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleangetAnnotation(Class annotationClass) Returns this element's annotation for the specified type if such an annotation is present, else null.Returns all annotations that are directly present on this element.Class[]intgetName()inthashCode()booleanisAnnotationPresent(Class<? extends Annotation> annotationClass) Returns true if an annotation for the specified type is present on this element, else false.booleanisBridge()booleanvoidsetAccessible(boolean accessible) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface gw.lang.reflect.java.IJavaAnnotatedElement
getLocationInfo
-
Field Details
-
_method
-
_module
-
-
Constructor Details
-
MethodJavaClassMethod
-
-
Method Details
-
getReturnType
- Specified by:
getReturnTypein interfaceIJavaClassMethod
-
getReturnClassInfo
- Specified by:
getReturnClassInfoin interfaceIJavaClassMethod
-
getName
- Specified by:
getNamein interfaceIJavaClassMethod
-
getParameterInfos
- Specified by:
getParameterInfosin interfaceIJavaClassMethod
-
getEnclosingClass
- Specified by:
getEnclosingClassin interfaceIJavaAnnotatedElement
-
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
- Specified by:
getExceptionTypesin interfaceIJavaClassMethod
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceIJavaClassMethod
-
getReturnTypeName
- Specified by:
getReturnTypeNamein interfaceIJavaClassMethod
-
isAnnotationPresent
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
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
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
-
setAccessible
public void setAccessible(boolean accessible) -
invoke
public Object invoke(Object ctx, Object[] args) throws InvocationTargetException, IllegalAccessException - Specified by:
invokein interfaceIJavaClassMethod- Throws:
InvocationTargetExceptionIllegalAccessException
-
getTypeVariables
- Specified by:
getTypeVariablesin interfaceIJavaClassMethod
-
getGenericParameterTypes
- Specified by:
getGenericParameterTypesin interfaceIJavaClassMethod
-
getGenericReturnType
- Specified by:
getGenericReturnTypein interfaceIJavaClassMethod
-
getJavaParameterTypes
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<IJavaClassMethod>
-
getJavaMethod
-
toString
-