Top Description Fields Constructors Methods
org.yaml.snakeyaml.introspector

public Class FieldProperty

extends GenericProperty
Class Inheritance
Imports
java.lang.annotation.Annotation, java.lang.reflect.Field, java.util.List, org.yaml.snakeyaml.error.YAMLException, org.yaml.snakeyaml.util.ArrayUtils

A FieldProperty is a Property which is accessed as a field, without going through accessor methods (setX, getX). The field may have any scope (public, package, protected, private).

Field Summary

Modifier and TypeField and Description
private final Field

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
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 void
Inherited from org.yaml.snakeyaml.introspector.GenericProperty:
getActualTypeArguments

Field Detail

fieldback to summary
private final Field field

Constructor Detail

FieldPropertyback to summary
public FieldProperty(Field field)

Method Detail

getback to summary
public Object get(Object object)

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

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
setback to summary
public void set(Object object, Object value) throws Exception

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

Annotations
@Override