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, wait
equals, getAnnotation, getAnnotations, isAnnotationPresent
protected 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()
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 Annotation> T getAnnotation(Class<T> annotationType)
getAnnotation
in interface XAnnotatedElement
public <T extends Annotation> boolean isAnnotationPresent(Class<T> annotationType)
isAnnotationPresent
in interface XAnnotatedElement
public Annotation[] getAnnotations()
getAnnotations
in interface XAnnotatedElement
public boolean equals(Object obj)
XAnnotatedElement
equals
in interface XAnnotatedElement
equals
in class Object
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.