Package ch.njol.skript.patterns
Class SkriptPattern
java.lang.Object
ch.njol.skript.patterns.SkriptPattern
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Count the maximum amount of non-null types in this pattern, i.e.int
static String[]
getKeywords
(PatternElement first) @Nullable MatchResult
@Nullable MatchResult
match
(String expr, int flags, ParseContext parseContext) toString()
-
Constructor Details
-
SkriptPattern
-
-
Method Details
-
match
-
match
-
toString
-
getKeywords
-
countTypes
public int countTypes()- Returns:
- the size of the
MatchResult.expressions
array from a match.
-
countNonNullTypes
public int countNonNullTypes()Count the maximum amount of non-null types in this pattern, i.e. the maximum amount of non-null values in theMatchResult.expressions
array from a match.
-