public interface XMember extends XAnnotatedElement
Modifier and Type | Method and Description |
---|---|
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 |
getDeclaringClass()
Retrieve the XClass reference for the class which declares this member.
|
XClass |
getElementClass()
This property's type for simple properties, the type of its elements for arrays and collections.
|
XClass |
getMapKey()
The type of this map's key, or null for anything that is not a map.
|
int |
getModifiers()
Same modifiers as java.lang.Member#getModifiers()
|
String |
getName() |
XClass |
getType()
This property's XClass.
|
Object |
invoke(Object target)
Invoke the method with no parameters.
|
Object |
invoke(Object target,
Object... parameters) |
boolean |
isArray() |
boolean |
isCollection() |
boolean |
isTypeResolved() |
void |
setAccessible(boolean accessible) |
equals, getAnnotation, getAnnotations, isAnnotationPresent
XClass getDeclaringClass()
String getName()
boolean isCollection()
boolean isArray()
Class<? extends Collection> getCollectionClass()
XClass getType()
XClass getElementClass()
XClass getClassOrElementClass()
XClass getMapKey()
int getModifiers()
void setAccessible(boolean accessible)
Object invoke(Object target)
invoke(Object, Object...)
.target
- boolean isTypeResolved()
Copyright © 2021 JBoss by Red Hat. All rights reserved.