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
<T extends PatternElement>
List<T> getElements
(Class<T> type) A method to obtain a list of all pattern elements of a specified type that are represented by this SkriptPattern.@Nullable MatchResult
@Nullable MatchResult
match
(String expr, int flags, ParseContext parseContext) toString()
-
Constructor Details
-
SkriptPattern
-
-
Method Details
-
match
-
match
-
toString
-
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.- See Also:
-
getElements
A method to obtain a list of all pattern elements of a specified type that are represented by this SkriptPattern.- Type Parameters:
T
- The type of pattern element.- Parameters:
type
- The type of pattern elements to obtain.- Returns:
- A list of all pattern elements of the specified type represented by this SkriptPattern.
-