Class SyntaxManager
java.lang.Object
io.github.syst3ms.skriptparser.registration.SyntaxManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Comparator<? super SyntaxInfo<?>> The ordering describing the order in which syntaxes should be tested during parsing -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<ExpressionInfo<?, ?>> static List<SyntaxInfo<? extends Effect>> static List<SkriptEventInfo<?>> static <E extends Expression<T>, T>
Optional<? extends ExpressionInfo<E, T>> getExpressionExact(Expression<T> expr) static List<SyntaxInfo<? extends CodeSection>>
-
Field Details
-
INFO_COMPARATOR
The ordering describing the order in which syntaxes should be tested during parsing
-
-
Constructor Details
-
SyntaxManager
public SyntaxManager()
-
-
Method Details
-
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 classT- the expression return type- Parameters:
expr- the expression instance- Returns:
- the
ExpressionInfocorresponding to the givenExpressioninstance
-
getSections
- Returns:
- a list of all currently registered sections
-
getEffects
- Returns:
- a list of all currently registered effects
-
getEvents
- Returns:
- a list of all currently registered events
-