Package org.yaml.snakeyaml.introspector
Class PropertySubstitute
java.lang.Object
org.yaml.snakeyaml.introspector.Property
org.yaml.snakeyaml.introspector.PropertySubstitute
- All Implemented Interfaces:
Comparable<Property>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPropertySubstitute
(String name, Class<?> type, Class<?>... params) PropertySubstitute
(String name, Class<?> type, String readMethod, String writeMethod, Class<?>... params) -
Method Summary
Modifier and TypeMethodDescriptionprivate Method
discoverMethod
(Class<?> type, String name, Class<?>... params) Class<?>[]
<A extends Annotation>
AgetAnnotation
(Class<A> annotationType) Returns property's annotation for the given type ornull
if it's not present.Returns the annotations that are present on this property or emptyList
if there're no annotations.getName()
Class<?>
getType()
boolean
boolean
void
void
setActualTypeArguments
(Class<?>... args) void
setDelegate
(Property delegate) void
setTargetType
(Class<?> targetType)
-
Field Details
-
log
-
targetType
-
readMethod
-
writeMethod
-
read
-
write
-
field
-
parameters
-
delegate
-
filler
private boolean filler
-
-
Constructor Details
-
PropertySubstitute
-
PropertySubstitute
-
-
Method Details
-
getActualTypeArguments
- Specified by:
getActualTypeArguments
in classProperty
-
setActualTypeArguments
-
set
-
get
-
getAnnotations
Description copied from class:Property
Returns the annotations that are present on this property or emptyList
if there're no annotations.- Specified by:
getAnnotations
in classProperty
- Returns:
- the annotations that are present on this property or empty
List
if there're no annotations
-
getAnnotation
Description copied from class:Property
Returns property's annotation for the given type ornull
if it's not present.- Specified by:
getAnnotation
in classProperty
- Type Parameters:
A
- class of the annotation- Parameters:
annotationType
- the type of the annotation to be returned- Returns:
- property's annotation for the given type or
null
if it's not present
-
setTargetType
-
discoverMethod
-
getName
-
getType
-
isReadable
public boolean isReadable()- Overrides:
isReadable
in classProperty
-
isWritable
public boolean isWritable()- Overrides:
isWritable
in classProperty
-
setDelegate
-