Comparable<Property>
public class PropertySubstitute extends Property
Modifier and Type | Field | Description |
---|---|---|
protected Class<?>[] |
parameters |
|
protected Class<?> |
targetType |
Constructor | Description |
---|---|
PropertySubstitute(String name,
Class<?> type,
Class<?>... params) |
|
PropertySubstitute(String name,
Class<?> type,
String readMethod,
String writeMethod,
Class<?>... params) |
Modifier and Type | Method | 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 Property
public void setActualTypeArguments(Class<?>... args)
public List<Annotation> getAnnotations()
Property
List
if there're no annotations.getAnnotations
in class Property
List
if there're no annotationspublic <A extends Annotation> A getAnnotation(Class<A> annotationType)
Property
null
if it's not present.getAnnotation
in class Property
A
- 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 Property
public boolean isWritable()
isWritable
in class Property
public void setDelegate(Property delegate)
Copyright © 2008–2018. All rights reserved.