Class SyntaxManager

java.lang.Object
io.github.syst3ms.skriptparser.registration.SyntaxManager

public class SyntaxManager extends Object
  • Field Details

    • INFO_COMPARATOR

      public static final Comparator<? super SyntaxInfo<?>> INFO_COMPARATOR
      The ordering describing the order in which syntaxes should be tested during parsing
  • Constructor Details

    • SyntaxManager

      public SyntaxManager()
  • Method Details

    • getAllExpressions

      public static List<ExpressionInfo<?,?>> getAllExpressions()
      Returns:
      a list of all currently registered expressions
    • getExpressionExact

      public static <E extends Expression<T>, T> Optional<? extends ExpressionInfo<E,T>> getExpressionExact(Expression<T> expr)
      Type Parameters:
      E - the expression class
      T - the expression return type
      Parameters:
      expr - the expression instance
      Returns:
      the ExpressionInfo corresponding to the given Expression instance
    • getSections

      public static List<SyntaxInfo<? extends CodeSection>> getSections()
      Returns:
      a list of all currently registered sections
    • getEffects

      public static List<SyntaxInfo<? extends Effect>> getEffects()
      Returns:
      a list of all currently registered effects
    • getEvents

      public static List<SkriptEventInfo<?>> getEvents()
      Returns:
      a list of all currently registered events