Package eu.mihosoft.vmf.runtime.core
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 Summary
Modifier and TypeMethodDescriptiondefault Optional<Annotation>
annotationByKey
(String key) Returns annotation specified by key.Returns the list of annotations of this object.default List<Annotation>
annotationsByKey
(String key) Returns annotations specified by key.Returns the list of properties of this object.propertyByName
(String name) Returns the model property specified by name.type()
Returns the type of this object.
-
Method Details
-
annotations
List<Annotation> annotations()Returns the list of annotations of this object.- Returns:
- the list of annotations of this object
-
annotationByKey
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
Returns annotations specified by key.- Parameters:
key
- the key of the annotation to return- Returns:
- annotations specified by key
- See Also:
-
properties
Returns the list of properties of this object.- Returns:
- the list of properties of this object
-
propertyByName
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.
-