Class PAnnotation
java.lang.Object
tools.refinery.interpreter.matchers.psystem.annotations.PAnnotation
A container describing query annotations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttribute(String attributeName, Object value) Adds an attribute to the annotationvoidforEachValue(BiConsumer<String, Object> consumer) Executes a consumer over all attributes.Returns a set of all attribute names used in this annotationgetAllValues(String attributeName) Returns all values of a selected attributegetFirstValue(String attributeName) Returns the value of the first occurrence of an attribute<T> Optional<T> getFirstValue(String attributeName, Class<T> clazz) Returns the value of the first occurrence of an attributegetName()Return the name of the annotation
-
Constructor Details
-
PAnnotation
-
-
Method Details
-
addAttribute
-
getName
Return the name of the annotation -
getFirstValue
-
getFirstValue
-
getAllValues
-
forEachValue
Executes a consumer over all attributes. A selected attribute name (key) can appear (and thus consumed) multiple times.- Since:
- 2.0
-
getAllAttributeNames
-