public class JavaMethodImpl extends java.lang.Object implements JavaMethod
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:
JavaMethod
,
Method
Modifier and Type | Field and Description |
---|---|
protected boolean |
isMetadataComplete |
protected java.lang.reflect.Method |
jMethod |
Constructor and Description |
---|
JavaMethodImpl(java.lang.reflect.Method javaMethod,
JavaModelImpl javaModelImpl) |
JavaMethodImpl(java.lang.reflect.Method javaMethod,
JavaModelImpl javaModelImpl,
java.lang.Boolean isMetadataComplete) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection |
getActualTypeArguments() |
java.lang.reflect.AnnotatedElement |
getAnnotatedElement() |
JavaAnnotation |
getAnnotation(JavaClass arg0) |
java.util.Collection |
getAnnotations() |
JavaAnnotation |
getDeclaredAnnotation(JavaClass arg0) |
java.util.Collection |
getDeclaredAnnotations() |
int |
getModifiers() |
java.lang.String |
getName() |
JavaClass |
getOwningClass() |
JavaClass[] |
getParameterTypes() |
JavaClass |
getResolvedType() |
JavaClass |
getReturnType() |
boolean |
hasActualTypeArguments() |
boolean |
isAbstract() |
boolean |
isBridge() |
boolean |
isFinal() |
boolean |
isPrivate() |
boolean |
isProtected() |
boolean |
isPublic() |
boolean |
isStatic() |
boolean |
isSynthetic() |
protected java.lang.reflect.Method jMethod
protected boolean isMetadataComplete
public JavaMethodImpl(java.lang.reflect.Method javaMethod, JavaModelImpl javaModelImpl)
public JavaMethodImpl(java.lang.reflect.Method javaMethod, JavaModelImpl javaModelImpl, java.lang.Boolean isMetadataComplete)
public java.util.Collection getActualTypeArguments()
public JavaAnnotation getAnnotation(JavaClass arg0)
getAnnotation
in interface JavaHasAnnotations
public java.util.Collection getAnnotations()
getAnnotations
in interface JavaHasAnnotations
public java.lang.String getName()
getName
in interface JavaMethod
public JavaClass[] getParameterTypes()
getParameterTypes
in interface JavaMethod
public JavaClass getResolvedType()
public JavaClass getReturnType()
getReturnType
in interface JavaMethod
public boolean hasActualTypeArguments()
public int getModifiers()
getModifiers
in interface JavaMethod
public JavaClass getOwningClass()
getOwningClass
in interface JavaMethod
public java.lang.reflect.AnnotatedElement getAnnotatedElement()
public boolean isAbstract()
isAbstract
in interface JavaMethod
public boolean isPrivate()
isPrivate
in interface JavaMethod
public boolean isProtected()
isProtected
in interface JavaMethod
public boolean isPublic()
isPublic
in interface JavaMethod
public boolean isStatic()
isStatic
in interface JavaMethod
public boolean isFinal()
isFinal
in interface JavaMethod
public boolean isSynthetic()
isSynthetic
in interface JavaMethod
public boolean isBridge()
isBridge
in interface JavaMethod
public JavaAnnotation getDeclaredAnnotation(JavaClass arg0)
getDeclaredAnnotation
in interface JavaHasAnnotations
public java.util.Collection getDeclaredAnnotations()
getDeclaredAnnotations
in interface JavaHasAnnotations