Top Fields Constructors Methods
org.yaml.snakeyaml.introspector

public Class PropertySubstitute

extends Property
Class Inheritance
Imports
java.lang.annotation.Annotation, java.lang.reflect.Array, .Field, .Method, .Modifier, java.util.Arrays, .Collection, .List, .Map, .Map.Entry, org.yaml.snakeyaml.error.YAMLException, org.yaml.snakeyaml.internal.Logger, .Logger.Level

Field Summary

Modifier and TypeField and Description
private Property
private Field
private boolean
private static final Logger
protected Class<?>[]
private transient Method
private final String
protected Class<?>
private transient Method
private final String

Constructor Summary

AccessConstructor and Description
public
PropertySubstitute(String name, Class<?> type, String readMethod, String writeMethod, Class<?>... params)

public
PropertySubstitute(String name, Class<?> type, Class<?>... params)

Method Summary

Modifier and TypeMethod and Description
private Method
discoverMethod(Class<?> type, String name, Class<?>... params)

public Object
public Class<?>[]
public <A extends Annotation> A
getAnnotation(Class<A>
the type of the annotation to be returned
annotationType
)

Implements abstract org.yaml.snakeyaml.introspector.Property.getAnnotation.

Returns property's annotation for the given type or null if it's not present.
public List<Annotation>
getAnnotations()

Implements abstract org.yaml.snakeyaml.introspector.Property.getAnnotations.

Returns the annotations that are present on this property or empty List if there're no annotations.
public String
public Class<?>
public boolean
public boolean
public void
public void
public void
public void
setTargetType(Class<?> targetType)

Inherited from org.yaml.snakeyaml.introspector.Property:
compareToequalshashCodetoString

Field Detail

delegateback to summary
private Property delegate
fieldback to summary
private Field field
fillerback to summary
private boolean filler
logback to summary
private static final Logger log
parametersback to summary
protected Class<?>[] parameters
readback to summary
private transient Method read
readMethodback to summary
private final String readMethod
targetTypeback to summary
protected Class<?> targetType
writeback to summary
private transient Method write
writeMethodback to summary
private final String writeMethod

Constructor Detail

PropertySubstituteback to summary
public PropertySubstitute(String name, Class<?> type, String readMethod, String writeMethod, Class<?>... params)
PropertySubstituteback to summary
public PropertySubstitute(String name, Class<?> type, Class<?>... params)

Method Detail

discoverMethodback to summary
private Method discoverMethod(Class<?> type, String name, Class<?>... params)
getback to summary
public Object get(Object object)

Implements abstract org.yaml.snakeyaml.introspector.Property.get.

Annotations
@Override
getActualTypeArgumentsback to summary
public Class<?>[] getActualTypeArguments()

Implements abstract org.yaml.snakeyaml.introspector.Property.getActualTypeArguments.

Annotations
@Override
getAnnotationback to summary
public <A extends Annotation> A getAnnotation(Class<A> annotationType)

Implements abstract org.yaml.snakeyaml.introspector.Property.getAnnotation.

Doc from org.yaml.snakeyaml.introspector.Property.getAnnotation.

Returns property's annotation for the given type or null if it's not present.

Parameters
<A>
class of the annotation
annotationType:Class<A>

the type of the annotation to be returned

Returns:A

property's annotation for the given type or null if it's not present

Annotations
@Override
getAnnotationsback to summary
public List<Annotation> getAnnotations()

Implements abstract org.yaml.snakeyaml.introspector.Property.getAnnotations.

Doc from org.yaml.snakeyaml.introspector.Property.getAnnotations.

Returns the annotations that are present on this property or empty List if there're no annotations.

Returns:List<Annotation>

the annotations that are present on this property or empty List if there're no annotations

Annotations
@Override
getNameback to summary
public String getName()

Overrides org.yaml.snakeyaml.introspector.Property.getName.

Annotations
@Override
getTypeback to summary
public Class<?> getType()

Overrides org.yaml.snakeyaml.introspector.Property.getType.

Annotations
@Override
isReadableback to summary
public boolean isReadable()

Overrides org.yaml.snakeyaml.introspector.Property.isReadable.

Annotations
@Override
isWritableback to summary
public boolean isWritable()

Overrides org.yaml.snakeyaml.introspector.Property.isWritable.

Annotations
@Override
setback to summary
public void set(Object object, Object value) throws Exception

Implements abstract org.yaml.snakeyaml.introspector.Property.set.

Annotations
@Override
setActualTypeArgumentsback to summary
public void setActualTypeArguments(Class<?>... args)
setDelegateback to summary
public void setDelegate(Property delegate)
setTargetTypeback to summary
public void setTargetType(Class<?> targetType)