Class JavaXMember
java.lang.Object
org.hibernate.annotations.common.reflection.java.JavaXMember
- All Implemented Interfaces:
XAnnotatedElement,XMember
- Direct Known Subclasses:
JavaXMethod
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJavaXMember(Member member, Type type, TypeEnvironment env, JavaReflectionManager factory, org.hibernate.annotations.common.reflection.java.JavaXType xType) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the underlying artefact is the same<T extends Annotation>
TgetAnnotation(Class<T> annotationType) The type of this property's elements for arrays, the type of the property itself for everything else.Class<? extends Collection>The collection class for collections, null for others.Retrieve the XClass reference for the class which declares this member.This property's type for simple properties, the type of its elements for arrays and collections.protected JavaReflectionManagerThe type of this map's key, or null for anything that is not a map.intSame modifiers as java.lang.Member#getModifiers()abstract StringgetName()getType()This property's XClass.protected TypeEnvironmentinthashCode()<T extends Annotation>
booleanisAnnotationPresent(Class<T> annotationType) booleanisArray()booleanfinal booleanvoidsetAccessible(boolean accessible) toString()protected static TypetypeOf(Member member, TypeEnvironment env) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hibernate.annotations.common.reflection.XAnnotatedElement
equals, getAnnotation, getAnnotations, isAnnotationPresent
-
Constructor Details
-
JavaXMember
protected JavaXMember(Member member, Type type, TypeEnvironment env, JavaReflectionManager factory, org.hibernate.annotations.common.reflection.java.JavaXType xType)
-
-
Method Details
-
typeOf
-
getType
Description copied from interface:XMemberThis property's XClass. -
getName
-
getJavaType
-
getTypeEnvironment
-
getMember
-
getDeclaringClass
Description copied from interface:XMemberRetrieve the XClass reference for the class which declares this member.- Specified by:
getDeclaringClassin interfaceXMember- Returns:
- The XClass representing the declaring class of the underlying member
-
getCollectionClass
Description copied from interface:XMemberThe collection class for collections, null for others.- Specified by:
getCollectionClassin interfaceXMember
-
getClassOrElementClass
Description copied from interface:XMemberThe type of this property's elements for arrays, the type of the property itself for everything else.- Specified by:
getClassOrElementClassin interfaceXMember
-
getElementClass
Description copied from interface:XMemberThis property's type for simple properties, the type of its elements for arrays and collections.- Specified by:
getElementClassin interfaceXMember
-
getMapKey
Description copied from interface:XMemberThe type of this map's key, or null for anything that is not a map. -
isArray
public boolean isArray() -
isCollection
public boolean isCollection()- Specified by:
isCollectionin interfaceXMember
-
getModifiers
public int getModifiers()Description copied from interface:XMemberSame modifiers as java.lang.Member#getModifiers()- Specified by:
getModifiersin interfaceXMember
-
isTypeResolved
public final boolean isTypeResolved()- Specified by:
isTypeResolvedin interfaceXMember
-
setAccessible
public void setAccessible(boolean accessible) - Specified by:
setAccessiblein interfaceXMember
-
getFactory
-
getAnnotation
- Specified by:
getAnnotationin interfaceXAnnotatedElement
-
isAnnotationPresent
- Specified by:
isAnnotationPresentin interfaceXAnnotatedElement
-
getAnnotations
- Specified by:
getAnnotationsin interfaceXAnnotatedElement
-
equals
Description copied from interface:XAnnotatedElementReturns true if the underlying artefact is the same- Specified by:
equalsin interfaceXAnnotatedElement- Overrides:
equalsin classObject
-
hashCode
public int hashCode() -
toString
-