Class AnnotationHelper

java.lang.Object
io.higson.runtime.engine.util.reflection.AnnotationHelper

public final class AnnotationHelper extends Object
Author:
Adam Dubiel
  • Method Details

    • extractValue

      public static <T> T extractValue(Annotation annotation, String methodName)
      Extract value from given annotation method, if anything goes wrong throws InnerReflectiveOperationException with real reason as cause.
      Type Parameters:
      T - type of returned value
      Parameters:
      annotation - source annotation
      methodName - annotation method to look for
      Returns:
      value returned from annotation method