Interface XMember
-
- All Superinterfaces:
XAnnotatedElement
- All Known Implementing Classes:
JavaXMember,JavaXMethod
public interface XMember extends XAnnotatedElement
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description XClassgetClassOrElementClass()The type of this property's elements for arrays, the type of the property itself for everything else.Class<? extends Collection>getCollectionClass()The collection class for collections, null for others.XClassgetDeclaringClass()Retrieve the XClass reference for the class which declares this member.XClassgetElementClass()This property's type for simple properties, the type of its elements for arrays and collections.XClassgetMapKey()The type of this map's key, or null for anything that is not a map.intgetModifiers()Same modifiers as java.lang.Member#getModifiers()StringgetName()XClassgetType()This property's XClass.Objectinvoke(Object target)Invoke the method with no parameters.Objectinvoke(Object target, Object... parameters)booleanisArray()booleanisCollection()booleanisTypeResolved()voidsetAccessible(boolean accessible)-
Methods inherited from interface org.hibernate.annotations.common.reflection.XAnnotatedElement
equals, getAnnotation, getAnnotations, isAnnotationPresent
-
-
-
-
Method Detail
-
getDeclaringClass
XClass getDeclaringClass()
Retrieve the XClass reference for the class which declares this member.- Returns:
- The XClass representing the declaring class of the underlying member
-
getName
String getName()
-
isCollection
boolean isCollection()
-
isArray
boolean isArray()
-
getCollectionClass
Class<? extends Collection> getCollectionClass()
The collection class for collections, null for others.
-
getType
XClass getType()
This property's XClass.
-
getElementClass
XClass getElementClass()
This property's type for simple properties, the type of its elements for arrays and collections.
-
getClassOrElementClass
XClass getClassOrElementClass()
The type of this property's elements for arrays, the type of the property itself for everything else.
-
getMapKey
XClass getMapKey()
The type of this map's key, or null for anything that is not a map.
-
getModifiers
int getModifiers()
Same modifiers as java.lang.Member#getModifiers()
-
setAccessible
void setAccessible(boolean accessible)
-
invoke
Object invoke(Object target)
Invoke the method with no parameters. Same asinvoke(Object, Object...).- Parameters:
target-- Returns:
-
isTypeResolved
boolean isTypeResolved()
-
-