Package ch.njol.skript.patterns
Class PatternElement
java.lang.Object
ch.njol.skript.patterns.PatternElement
- Direct Known Subclasses:
ChoicePatternElement
,GroupPatternElement
,LiteralPatternElement
,OptionalPatternElement
,ParseTagPatternElement
,RegexPatternElement
,TypePatternElement
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAllCombinations
(boolean clean) Gets all combinations available to thisPatternElement
and linkedPatternElement
s.getCombinations
(boolean clean) Gets the combinations available to thisPatternElement
.abstract @Nullable MatchResult
match
(String expr, MatchResult matchResult) protected @Nullable MatchResult
matchNext
(String expr, MatchResult matchResult) abstract String
toString()
-
Constructor Details
-
PatternElement
public PatternElement()
-
-
Method Details
-
match
-
matchNext
-
toString
-
toFullString
-
getCombinations
Gets the combinations available to thisPatternElement
.- Parameters:
clean
- Whether unnecessary data, determined by each implementation, should be excluded from the combinations.- Returns:
- The combinations.
-
getAllCombinations
Gets all combinations available to thisPatternElement
and linkedPatternElement
s.- Parameters:
clean
- Whether unnecessary data, determined by each implementation, should be excluded from the combinations.- Returns:
- The combinations.
-