Class AnnotationParser.Reader

java.lang.Object
jodd.util.AnnotationParser.Reader
Enclosing class:
AnnotationParser

public class AnnotationParser.Reader extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • annotationType

      public Class<? extends Annotation> annotationType()
      Returns the annotation type this reader is for.
    • readStringElement

      protected String readStringElement(String name)
      Reads non-empty, trimmed, annotation element value. If annotation value is missing, it will read value from default annotation. If still missing, returns null.
    • readElement

      public Object readElement(String name)
      Reads annotation element as an object. If annotation value is missing, it will be read from default annotation. If still missing, returns null.
    • readString

      public String readString(String name, String defaultValue)
      Reads string element from the annotation. Empty strings are detected and default value is returned instead.
    • readBoolean

      public boolean readBoolean(String name, boolean defaultValue)
      Reads boolean element from the annotation.
    • readInt

      public int readInt(String name, int defaultValue)
      Reads int element from the annotation.