Annotation Interface SourceParser


@Target(METHOD) @Retention(RUNTIME) @AvailableSince("0.0.30") public @interface SourceParser
Registers a source parser for a specific method that give that class access to it
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The return type of the parser
    The keyword that triggers the parser
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Whether this variant should ignore case for its label
    boolean
    Whether this variant should lazy map for its label
    int
    The priority
    long
    The max age of the result in milliseconds When the result is older it will be discarded next time someone use the parser When set to -1 it will never be discarded When set to 0 it will always be discarded
  • Element Details

    • keyword

      String keyword
      The keyword that triggers the parser
    • priority

      int priority
      The priority
      Default:
      0
    • clazz

      Class<?> clazz
      The return type of the parser
    • resultMaxAgeInMills

      long resultMaxAgeInMills
      The max age of the result in milliseconds When the result is older it will be discarded next time someone use the parser When set to -1 it will never be discarded When set to 0 it will always be discarded
      Default:
      0L
    • ignoreCase

      @AvailableSince("0.0.30") boolean ignoreCase
      Whether this variant should ignore case for its label
      Default:
      false
    • lax

      @AvailableSince("0.0.30") boolean lax
      Whether this variant should lazy map for its label
      Default:
      false