org.hibernate.annotations.common.reflection.java
public abstract class JavaXMember extends java.lang.Object implements XMember
Modifier | Constructor and Description |
---|---|
protected |
JavaXMember(java.lang.reflect.Member member,
java.lang.reflect.Type type,
TypeEnvironment env,
JavaReflectionManager factory,
org.hibernate.annotations.common.reflection.java.JavaXType xType) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Returns true if the underlying artefact
is the same
|
<T extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<T> annotationType) |
java.lang.annotation.Annotation[] |
getAnnotations() |
XClass |
getClassOrElementClass()
The type of this property's elements for arrays, the type of the property itself for everything else.
|
java.lang.Class<? extends java.util.Collection> |
getCollectionClass()
The collection class for collections, null for others.
|
XClass |
getElementClass()
This property's type for simple properties, the type of its elements for arrays and collections.
|
protected JavaReflectionManager |
getFactory() |
protected java.lang.reflect.Type |
getJavaType() |
XClass |
getMapKey()
The type of this map's key, or null for anything that is not a map.
|
protected java.lang.reflect.Member |
getMember() |
int |
getModifiers()
Same modifiers as java.lang.Member#getModifiers()
|
abstract java.lang.String |
getName() |
XClass |
getType()
This property's XClass.
|
protected TypeEnvironment |
getTypeEnvironment() |
int |
hashCode() |
<T extends java.lang.annotation.Annotation> |
isAnnotationPresent(java.lang.Class<T> annotationType) |
boolean |
isArray() |
boolean |
isCollection() |
boolean |
isTypeResolved() |
void |
setAccessible(boolean accessible) |
java.lang.String |
toString() |
protected static java.lang.reflect.Type |
typeOf(java.lang.reflect.Member member,
TypeEnvironment env) |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
equals, getAnnotation, getAnnotations, isAnnotationPresent
protected JavaXMember(java.lang.reflect.Member member, java.lang.reflect.Type type, TypeEnvironment env, JavaReflectionManager factory, org.hibernate.annotations.common.reflection.java.JavaXType xType)
protected static java.lang.reflect.Type typeOf(java.lang.reflect.Member member, TypeEnvironment env)
protected java.lang.reflect.Type getJavaType()
protected TypeEnvironment getTypeEnvironment()
protected java.lang.reflect.Member getMember()
public java.lang.Class<? extends java.util.Collection> getCollectionClass()
XMember
getCollectionClass
in interface XMember
public XClass getClassOrElementClass()
XMember
getClassOrElementClass
in interface XMember
public XClass getElementClass()
XMember
getElementClass
in interface XMember
public XClass getMapKey()
XMember
public boolean isCollection()
isCollection
in interface XMember
public int getModifiers()
XMember
getModifiers
in interface XMember
public final boolean isTypeResolved()
isTypeResolved
in interface XMember
public void setAccessible(boolean accessible)
setAccessible
in interface XMember
protected JavaReflectionManager getFactory()
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationType)
getAnnotation
in interface XAnnotatedElement
public <T extends java.lang.annotation.Annotation> boolean isAnnotationPresent(java.lang.Class<T> annotationType)
isAnnotationPresent
in interface XAnnotatedElement
public java.lang.annotation.Annotation[] getAnnotations()
getAnnotations
in interface XAnnotatedElement
public boolean equals(java.lang.Object obj)
XAnnotatedElement
equals
in interface XAnnotatedElement
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object