Class SyntheticJavaMethod
java.lang.Object
gw.internal.gosu.parser.java.classinfo.SyntheticJavaMethod
- All Implemented Interfaces:
IJavaAnnotatedElement,IJavaClassMethod,Serializable,Comparable<IJavaClassMethod>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate IJavaClassInfoprivate IJavaClassInfo[]private intprivate Stringprivate IJavaClassInfo[]private IJavaClassInfoprivate IJavaClassType -
Constructor Summary
ConstructorsConstructorDescriptionSyntheticJavaMethod(IJavaClassInfo enclosingclass, IJavaClassInfo returnclassinfo, IJavaClassType returntype, String name, int modifiers, IJavaClassInfo[] params, IJavaClassInfo[] exceptions) -
Method Summary
Modifier and TypeMethodDescriptionintgetAnnotation(Class<? extends Annotation> 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.intgetName()getTypeVariables(IJavaMethodInfo javaMethodInfo) booleanisAnnotationPresent(Class<? extends Annotation> annotationClass) Returns true if an annotation for the specified type is present on this element, else false.booleanisBridge()booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gw.lang.reflect.java.IJavaAnnotatedElement
getLocationInfo
-
Field Details
-
_enclosingClass
-
_returnClassInfo
-
_returnType
-
_name
-
_modifiers
private int _modifiers -
_params
-
_exceptions
-
-
Constructor Details
-
SyntheticJavaMethod
public SyntheticJavaMethod(IJavaClassInfo enclosingclass, IJavaClassInfo returnclassinfo, IJavaClassType returntype, String name, int modifiers, IJavaClassInfo[] params, IJavaClassInfo[] exceptions)
-
-
Method Details
-
getReturnClassInfo
- Specified by:
getReturnClassInfoin interfaceIJavaClassMethod
-
getGenericReturnType
- Specified by:
getGenericReturnTypein interfaceIJavaClassMethod
-
getReturnTypeName
- Specified by:
getReturnTypeNamein interfaceIJavaClassMethod
-
getReturnType
- Specified by:
getReturnTypein interfaceIJavaClassMethod
-
getGenericParameterTypes
- Specified by:
getGenericParameterTypesin interfaceIJavaClassMethod
-
getParameterTypes
- Specified by:
getParameterTypesin interfaceIJavaClassMethod
-
getName
- Specified by:
getNamein interfaceIJavaClassMethod
-
getParameterInfos
- Specified by:
getParameterInfosin interfaceIJavaClassMethod
-
getModifiers
public int getModifiers()- Specified by:
getModifiersin interfaceIJavaClassMethod
-
getExceptionTypes
- Specified by:
getExceptionTypesin interfaceIJavaClassMethod
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceIJavaClassMethod
-
invoke
public Object invoke(Object ctx, Object[] args) throws InvocationTargetException, IllegalAccessException - Specified by:
invokein interfaceIJavaClassMethod- Throws:
InvocationTargetExceptionIllegalAccessException
-
getTypeVariables
- Specified by:
getTypeVariablesin interfaceIJavaClassMethod
-
isSynthetic
public boolean isSynthetic()- Specified by:
isSyntheticin interfaceIJavaClassMethod
-
isBridge
public boolean isBridge()- Specified by:
isBridgein interfaceIJavaClassMethod
-
compareTo
- Specified by:
compareToin interfaceComparable<IJavaClassMethod>
-
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
-
getEnclosingClass
- Specified by:
getEnclosingClassin interfaceIJavaAnnotatedElement
-