Class JavaMethodImpl
- java.lang.Object
-
- org.eclipse.persistence.jaxb.javamodel.reflection.JavaMethodImpl
-
- All Implemented Interfaces:
JavaHasAnnotations,JavaMethod
public class JavaMethodImpl extends java.lang.Object implements JavaMethod
INTERNAL:Purpose:A wrapper for a JDK Method. This implementation of the EclipseLink JAXB 2.X Java model simply makes reflective calls on the underlying JDK object.
Responsibilities:
- Provide access to the underlying method's name, parameters, modifiers, annotations, etc.
- See Also:
JavaMethod,Method- Since:
- Oracle TopLink 11.1.1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanisMetadataCompleteprotected java.lang.reflect.MethodjMethod
-
Constructor Summary
Constructors Constructor Description JavaMethodImpl(java.lang.reflect.Method javaMethod, JavaModelImpl javaModelImpl)JavaMethodImpl(java.lang.reflect.Method javaMethod, JavaModelImpl javaModelImpl, java.lang.Boolean isMetadataComplete)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.CollectiongetActualTypeArguments()java.lang.reflect.AnnotatedElementgetAnnotatedElement()JavaAnnotationgetAnnotation(JavaClass arg0)java.util.CollectiongetAnnotations()JavaAnnotationgetDeclaredAnnotation(JavaClass arg0)java.util.CollectiongetDeclaredAnnotations()intgetModifiers()java.lang.StringgetName()JavaClassgetOwningClass()JavaClass[]getParameterTypes()JavaClassgetResolvedType()JavaClassgetReturnType()booleanhasActualTypeArguments()booleanisAbstract()booleanisBridge()booleanisFinal()booleanisPrivate()booleanisProtected()booleanisPublic()booleanisStatic()booleanisSynthetic()
-
-
-
Constructor Detail
-
JavaMethodImpl
public JavaMethodImpl(java.lang.reflect.Method javaMethod, JavaModelImpl javaModelImpl)
-
JavaMethodImpl
public JavaMethodImpl(java.lang.reflect.Method javaMethod, JavaModelImpl javaModelImpl, java.lang.Boolean isMetadataComplete)
-
-
Method Detail
-
getActualTypeArguments
public java.util.Collection getActualTypeArguments()
-
getAnnotation
public JavaAnnotation getAnnotation(JavaClass arg0)
- Specified by:
getAnnotationin interfaceJavaHasAnnotations
-
getAnnotations
public java.util.Collection getAnnotations()
- Specified by:
getAnnotationsin interfaceJavaHasAnnotations
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceJavaMethod
-
getParameterTypes
public JavaClass[] getParameterTypes()
- Specified by:
getParameterTypesin interfaceJavaMethod
-
getResolvedType
public JavaClass getResolvedType()
-
getReturnType
public JavaClass getReturnType()
- Specified by:
getReturnTypein interfaceJavaMethod
-
hasActualTypeArguments
public boolean hasActualTypeArguments()
-
getModifiers
public int getModifiers()
- Specified by:
getModifiersin interfaceJavaMethod
-
getOwningClass
public JavaClass getOwningClass()
- Specified by:
getOwningClassin interfaceJavaMethod
-
getAnnotatedElement
public java.lang.reflect.AnnotatedElement getAnnotatedElement()
-
isAbstract
public boolean isAbstract()
- Specified by:
isAbstractin interfaceJavaMethod
-
isPrivate
public boolean isPrivate()
- Specified by:
isPrivatein interfaceJavaMethod
-
isProtected
public boolean isProtected()
- Specified by:
isProtectedin interfaceJavaMethod
-
isPublic
public boolean isPublic()
- Specified by:
isPublicin interfaceJavaMethod
-
isStatic
public boolean isStatic()
- Specified by:
isStaticin interfaceJavaMethod
-
isFinal
public boolean isFinal()
- Specified by:
isFinalin interfaceJavaMethod
-
isSynthetic
public boolean isSynthetic()
- Specified by:
isSyntheticin interfaceJavaMethod
-
isBridge
public boolean isBridge()
- Specified by:
isBridgein interfaceJavaMethod
-
getDeclaredAnnotation
public JavaAnnotation getDeclaredAnnotation(JavaClass arg0)
- Specified by:
getDeclaredAnnotationin interfaceJavaHasAnnotations
-
getDeclaredAnnotations
public java.util.Collection getDeclaredAnnotations()
- Specified by:
getDeclaredAnnotationsin interfaceJavaHasAnnotations
-
-