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 TypeMethodDescriptionClass<?>[]<A extends Annotation>
AgetAnnotation(Class<A> annotationType) Returns property's annotation for the given type ornullif it's not present.Returns the annotations that are present on this property or emptyListif there're no annotations.getName()Class<?>getType()booleanbooleanvoidvoidsetActualTypeArguments(Class<?>... args) voidsetDelegate(Property delegate) voidsetTargetType(Class<?> targetType)
-
Field Details
-
targetType
-
parameters
-
-
Constructor Details
-
PropertySubstitute
-
PropertySubstitute
-
-
Method Details
-
getActualTypeArguments
- Specified by:
getActualTypeArgumentsin classProperty
-
setActualTypeArguments
-
set
-
get
-
getAnnotations
Description copied from class:PropertyReturns the annotations that are present on this property or emptyListif there're no annotations.- Specified by:
getAnnotationsin classProperty- Returns:
- the annotations that are present on this property or empty
Listif there're no annotations
-
getAnnotation
Description copied from class:PropertyReturns property's annotation for the given type ornullif it's not present.- Specified by:
getAnnotationin 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
nullif it's not present
-
setTargetType
-
getName
-
getType
-
isReadable
public boolean isReadable()- Overrides:
isReadablein classProperty
-
isWritable
public boolean isWritable()- Overrides:
isWritablein classProperty
-
setDelegate
-