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:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
private JavaSourceElement
getAnnotation
(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.int
getName()
com.sun.source.tree.Tree
getTree()
int
hashCode()
boolean
isAnnotationPresent
(Class<? extends Annotation> annotationClass) Returns true if an annotation for the specified type is present on this element, else false.boolean
isBridge()
boolean
private Object
private Object
normalizeValue
(Object value) void
setAccessible
(boolean accessible) 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
-
Field Details
-
_method
-
_module
-
-
Constructor Details
-
AsmMethodJavaClassMethod
-
-
Method Details
-
getReturnType
- Specified by:
getReturnType
in interfaceIJavaClassMethod
-
getReturnClassInfo
- Specified by:
getReturnClassInfo
in interfaceIJavaClassMethod
-
getName
- Specified by:
getName
in interfaceIJavaClassMethod
-
getParameterInfos
- Specified by:
getParameterInfos
in interfaceIJavaClassMethod
-
getEnclosingClass
- Specified by:
getEnclosingClass
in interfaceIJavaAnnotatedElement
- Specified by:
getEnclosingClass
in classJavaSourceElement
-
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
- Specified by:
getExceptionTypes
in interfaceIJavaClassMethod
-
getDefaultValue
- Specified by:
getDefaultValue
in interfaceIJavaClassMethod
-
normalizeValue
-
makeArray
-
getReturnTypeName
- Specified by:
getReturnTypeName
in interfaceIJavaClassMethod
-
isAnnotationPresent
Description copied from interface:IJavaAnnotatedElement
Returns 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:
isAnnotationPresent
in 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:IJavaAnnotatedElement
Returns this element's annotation for the specified type if such an annotation is present, else null.- Specified by:
getAnnotation
in 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:IJavaAnnotatedElement
Returns 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:
getDeclaredAnnotations
in 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:
invoke
in interfaceIJavaClassMethod
- Throws:
InvocationTargetException
IllegalAccessException
-
getTypeVariables
- Specified by:
getTypeVariables
in interfaceIJavaClassMethod
-
getGenericParameterTypes
- Specified by:
getGenericParameterTypes
in interfaceIJavaClassMethod
-
getGenericReturnType
- Specified by:
getGenericReturnType
in interfaceIJavaClassMethod
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<IJavaClassMethod>
-
toString
-
getTree
public com.sun.source.tree.Tree getTree()- Specified by:
getTree
in classJavaSourceElement
-
findSourceMethod
-