public class PropertySubstitute extends Property
| Modifier and Type | Field and Description |
|---|---|
protected Class<?>[] |
parameters |
protected Class<?> |
targetType |
| Constructor and Description |
|---|
PropertySubstitute(String name,
Class<?> type,
Class<?>... params) |
PropertySubstitute(String name,
Class<?> type,
String readMethod,
String writeMethod,
Class<?>... params) |
| Modifier and Type | Method and Description |
|---|---|
Object |
get(Object object) |
Class<?>[] |
getActualTypeArguments() |
<A extends Annotation> |
getAnnotation(Class<A> annotationType)
Returns property's annotation for the given type or
null if it's not present. |
List<Annotation> |
getAnnotations()
Returns the annotations that are present on this property or empty
List if there're no
annotations. |
String |
getName() |
Class<?> |
getType() |
boolean |
isReadable() |
boolean |
isWritable() |
void |
set(Object object,
Object value) |
void |
setActualTypeArguments(Class<?>... args) |
void |
setDelegate(Property delegate) |
void |
setTargetType(Class<?> targetType) |
public PropertySubstitute(String name, Class<?> type, String readMethod, String writeMethod, Class<?>... params)
public Class<?>[] getActualTypeArguments()
getActualTypeArguments in class Propertypublic void setActualTypeArguments(Class<?>... args)
public List<Annotation> getAnnotations()
PropertyList if there're no
annotations.getAnnotations in class PropertyList if there're no
annotationspublic <A extends Annotation> A getAnnotation(Class<A> annotationType)
Propertynull if it's not present.getAnnotation in class PropertyA - class of the annotationannotationType - the type of the annotation to be returnednull if it's not presentpublic void setTargetType(Class<?> targetType)
public boolean isReadable()
isReadable in class Propertypublic boolean isWritable()
isWritable in class Propertypublic void setDelegate(Property delegate)
Copyright © 2008–2022. All rights reserved.