public interface ClassProperty<Type,TargetType>
| Modifier and Type | Method and Description |
|---|---|
default java.lang.reflect.ParameterizedType |
getGenericType() |
ClassPropertyKey |
getKey() |
java.lang.Class<Type> |
getType() |
Type |
getValue(TargetType target)
If
isStatic() returns true - specified target is ignored and may be null |
Visibility |
getVisibility() |
default boolean |
isMutable()
If this method returns
true - setValue(Object, Object) can be called |
boolean |
isStatic() |
default void |
setValue(TargetType target,
Type value)
If
isStatic() returns true - specified target is ignored and may be null |
ClassPropertyKey getKey()
java.lang.Class<Type> getType()
default java.lang.reflect.ParameterizedType getGenericType()
Visibility getVisibility()
boolean isStatic()
Type getValue(TargetType target) throws java.lang.Exception
isStatic() returns true - specified target is ignored and may be nulljava.lang.IllegalArgumentException - if target is not an instance of the declaring class from the property keyjava.lang.Exceptiondefault void setValue(TargetType target, Type value) throws java.lang.Exception
isStatic() returns true - specified target is ignored and may be nulljava.lang.UnsupportedOperationException - if isMutable() returns falsejava.lang.IllegalArgumentException - if target is not an instance of the declaring class from the property keyjava.lang.IllegalArgumentException - if value of an illegal type is specifiedjava.lang.Exceptiondefault boolean isMutable()
true - setValue(Object, Object) can be called