Interface AnnotationAndValue

All Known Subinterfaces:
QualifierAndValue
All Known Implementing Classes:
DefaultAnnotationAndValue, DefaultQualifierAndValue, Qualifier

public interface AnnotationAndValue
Represents an annotation along with its value(s).
  • Method Details

    • typeName

      TypeName typeName()
      The type name, e.g., Objects -> "java.util.Objects".
      Returns:
      the annotation type name
    • value

      Optional<String> value()
      The value property.
      Returns:
      The string value of value property
    • value

      Optional<String> value(String name)
      Get a value of an annotation property.
      Parameters:
      name - name of the annotation property
      Returns:
      string value of the property
    • values

      Map<String,String> values()
      Get a key-value of all the annotation properties.
      Returns:
      key-value pairs of all the properties present