Class JavaSourceParameter
- java.lang.Object
-
- gw.lang.reflect.java.Parameter
-
- gw.internal.gosu.parser.java.classinfo.JavaSourceParameter
-
- All Implemented Interfaces:
IJavaAnnotatedElement
public class JavaSourceParameter extends Parameter implements IJavaAnnotatedElement
-
-
Field Summary
Fields Modifier and Type Field Description private IJavaClassType_genericTypeprivate JavaSourceMethod_methodprivate JavaSourceModifierList_modifierListprivate com.sun.source.tree.VariableTree_parameterTreeprivate IJavaClassInfo_type
-
Constructor Summary
Constructors Constructor Description JavaSourceParameter(JavaSourceMethod sourceJavaMethod, com.sun.source.tree.VariableTree parameterTree)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.JavaSourceTypegetEnclosingClass()IJavaClassTypegetGenericType()JavaSourceMethodgetMethod()IModifierListgetModifierList()java.lang.StringgetName()IJavaClassInfogetType()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.java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface gw.lang.reflect.java.IJavaAnnotatedElement
getLocationInfo
-
-
-
-
Field Detail
-
_method
private JavaSourceMethod _method
-
_parameterTree
private com.sun.source.tree.VariableTree _parameterTree
-
_genericType
private IJavaClassType _genericType
-
_modifierList
private JavaSourceModifierList _modifierList
-
_type
private IJavaClassInfo _type
-
-
Constructor Detail
-
JavaSourceParameter
public JavaSourceParameter(JavaSourceMethod sourceJavaMethod, com.sun.source.tree.VariableTree parameterTree)
-
-
Method Detail
-
getGenericType
public IJavaClassType getGenericType()
-
getType
public IJavaClassInfo getType()
-
getModifierList
public IModifierList getModifierList()
-
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 JavaSourceType getEnclosingClass()
- Specified by:
getEnclosingClassin interfaceIJavaAnnotatedElement
-
getMethod
public JavaSourceMethod getMethod()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-