Class PropertySubstitute

java.lang.Object
org.yaml.snakeyaml.introspector.Property
org.yaml.snakeyaml.introspector.PropertySubstitute
All Implemented Interfaces:
Comparable<Property>

public class PropertySubstitute extends Property
  • Field Details

    • log

      private static final Logger log
    • targetType

      protected Class<?> targetType
    • readMethod

      private final String readMethod
    • writeMethod

      private final String writeMethod
    • read

      private transient Method read
    • write

      private transient Method write
    • field

      private Field field
    • parameters

      protected Class<?>[] parameters
    • delegate

      private Property delegate
    • filler

      private boolean filler
  • Constructor Details

    • PropertySubstitute

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

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

    • getActualTypeArguments

      public Class<?>[] getActualTypeArguments()
      Specified by:
      getActualTypeArguments in class Property
    • setActualTypeArguments

      public void setActualTypeArguments(Class<?>... args)
    • set

      public void set(Object object, Object value) throws Exception
      Specified by:
      set in class Property
      Throws:
      Exception
    • get

      public Object get(Object object)
      Specified by:
      get in class Property
    • getAnnotations

      public List<Annotation> getAnnotations()
      Description copied from class: Property
      Returns the annotations that are present on this property or empty List if there're no annotations.
      Specified by:
      getAnnotations in class Property
      Returns:
      the annotations that are present on this property or empty List if there're no annotations
    • getAnnotation

      public <A extends Annotation> A getAnnotation(Class<A> annotationType)
      Description copied from class: Property
      Returns property's annotation for the given type or null if it's not present.
      Specified by:
      getAnnotation in class Property
      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

      public void setTargetType(Class<?> targetType)
    • discoverMethod

      private Method discoverMethod(Class<?> type, String name, Class<?>... params)
    • getName

      public String getName()
      Overrides:
      getName in class Property
    • getType

      public Class<?> getType()
      Overrides:
      getType in class Property
    • isReadable

      public boolean isReadable()
      Overrides:
      isReadable in class Property
    • isWritable

      public boolean isWritable()
      Overrides:
      isWritable in class Property
    • setDelegate

      public void setDelegate(Property delegate)