Class JavaXMethod
- java.lang.Object
-
- org.hibernate.annotations.common.reflection.java.JavaXMember
-
- org.hibernate.annotations.common.reflection.java.JavaXMethod
-
- All Implemented Interfaces:
XAnnotatedElement,XMember,XMethod
public final class JavaXMethod extends JavaXMember implements XMethod
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Returns true if the underlying artefact is the same<T extends Annotation>
TgetAnnotation(Class<T> annotationType)Annotation[]getAnnotations()protected JavaReflectionManagergetFactory()StringgetName()inthashCode()Objectinvoke(Object target)Invoke the method with no parameters.Objectinvoke(Object target, Object... parameters)<T extends Annotation>
booleanisAnnotationPresent(Class<T> annotationType)StringtoString()-
Methods inherited from class org.hibernate.annotations.common.reflection.java.JavaXMember
getClassOrElementClass, getCollectionClass, getDeclaringClass, getElementClass, getJavaType, getMapKey, getMember, getModifiers, getType, getTypeEnvironment, isArray, isCollection, isTypeResolved, setAccessible, typeOf
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.annotations.common.reflection.XAnnotatedElement
equals, getAnnotation, getAnnotations, isAnnotationPresent
-
Methods inherited from interface org.hibernate.annotations.common.reflection.XMember
getClassOrElementClass, getCollectionClass, getDeclaringClass, getElementClass, getMapKey, getModifiers, getType, isArray, isCollection, isTypeResolved, setAccessible
-
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceXMember- Specified by:
getNamein classJavaXMember
-
invoke
public Object invoke(Object target)
Description copied from interface:XMemberInvoke the method with no parameters. Same asXMember.invoke(Object, Object...).
-
getFactory
protected JavaReflectionManager getFactory()
-
getAnnotation
public <T extends Annotation> T getAnnotation(Class<T> annotationType)
- Specified by:
getAnnotationin interfaceXAnnotatedElement
-
isAnnotationPresent
public <T extends Annotation> boolean isAnnotationPresent(Class<T> annotationType)
- Specified by:
isAnnotationPresentin interfaceXAnnotatedElement
-
getAnnotations
public Annotation[] getAnnotations()
- Specified by:
getAnnotationsin interfaceXAnnotatedElement
-
equals
public boolean equals(Object obj)
Description copied from interface:XAnnotatedElementReturns true if the underlying artefact is the same- Specified by:
equalsin interfaceXAnnotatedElement- Overrides:
equalsin classObject
-
-