public abstract class JavaXMember extends Object implements XMember
| Modifier | Constructor and Description |
|---|---|
protected |
JavaXMember(Member member,
Type type,
TypeEnvironment env,
JavaReflectionManager factory,
org.hibernate.annotations.common.reflection.java.JavaXType xType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Returns true if the underlying artefact
is the same
|
<T extends Annotation> |
getAnnotation(Class<T> annotationType) |
Annotation[] |
getAnnotations() |
XClass |
getClassOrElementClass()
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.
|
XClass |
getElementClass()
This property's type for simple properties, the type of its elements for arrays and collections.
|
protected JavaReflectionManager |
getFactory() |
protected Type |
getJavaType() |
XClass |
getMapKey()
The type of this map's key, or null for anything that is not a map.
|
protected Member |
getMember() |
int |
getModifiers()
Same modifiers as java.lang.Member#getModifiers()
|
abstract String |
getName() |
XClass |
getType()
This property's XClass.
|
protected TypeEnvironment |
getTypeEnvironment() |
int |
hashCode() |
<T extends Annotation> |
isAnnotationPresent(Class<T> annotationType) |
boolean |
isArray() |
boolean |
isCollection() |
boolean |
isTypeResolved() |
void |
setAccessible(boolean accessible) |
String |
toString() |
protected static Type |
typeOf(Member member,
TypeEnvironment env) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitequals, getAnnotation, getAnnotations, isAnnotationPresentprotected JavaXMember(Member member, Type type, TypeEnvironment env, JavaReflectionManager factory, org.hibernate.annotations.common.reflection.java.JavaXType xType)
protected static Type typeOf(Member member, TypeEnvironment env)
protected Type getJavaType()
protected TypeEnvironment getTypeEnvironment()
protected Member getMember()
public Class<? extends Collection> getCollectionClass()
XMembergetCollectionClass in interface XMemberpublic XClass getClassOrElementClass()
XMembergetClassOrElementClass in interface XMemberpublic XClass getElementClass()
XMembergetElementClass in interface XMemberpublic XClass getMapKey()
XMemberpublic boolean isCollection()
isCollection in interface XMemberpublic int getModifiers()
XMembergetModifiers in interface XMemberpublic final boolean isTypeResolved()
isTypeResolved in interface XMemberpublic void setAccessible(boolean accessible)
setAccessible in interface XMemberprotected JavaReflectionManager getFactory()
public <T extends Annotation> T getAnnotation(Class<T> annotationType)
getAnnotation in interface XAnnotatedElementpublic <T extends Annotation> boolean isAnnotationPresent(Class<T> annotationType)
isAnnotationPresent in interface XAnnotatedElementpublic Annotation[] getAnnotations()
getAnnotations in interface XAnnotatedElementpublic boolean equals(Object obj)
XAnnotatedElementequals in interface XAnnotatedElementequals in class ObjectCopyright © 2012 JBoss by Red Hat. All Rights Reserved.