Interface Reflect

All Known Implementing Classes:
ReflectImpl

public interface Reflect
Reflection API of an object/type. The reflection API of an object can be accessed via the vmf() method:

 VObject o = ...
 Reflect r = o.vmf().reflect()
 
  • Method Details

    • annotations

      List<Annotation> annotations()
      Returns the list of annotations of this object.
      Returns:
      the list of annotations of this object
    • annotationByKey

      default Optional<Annotation> annotationByKey(String key)
      Returns annotation specified by key.
      Parameters:
      key - the key of the annotation to return
      Returns:
      the first annotation with the specified key
      See Also:
    • annotationsByKey

      default List<Annotation> annotationsByKey(String key)
      Returns annotations specified by key.
      Parameters:
      key - the key of the annotation to return
      Returns:
      annotations specified by key
      See Also:
    • properties

      List<Property> properties()
      Returns the list of properties of this object.
      Returns:
      the list of properties of this object
    • propertyByName

      default Optional<Property> propertyByName(String name)
      Returns the model property specified by name.
      Parameters:
      name - the model property specified by name
      Returns:
      the model property specified by name
    • type

      Type type()
      Returns the type of this object.