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
A pattern element represents a part of a
SkriptPattern.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAllCombinations(boolean clean) Gets all combinations available to thisPatternElementand linkedPatternElements.getCombinations(boolean clean) Gets the combinations available to thisPatternElement.abstract @Nullable MatchResultmatch(String expr, MatchResult matchResult) protected @Nullable MatchResultmatchNext(String expr, MatchResult matchResult) Deprecated, for removal: This API element is subject to removal in a future version.toFullString(SkriptPattern.StringificationProperties properties) Constructs a string representation of this pattern element and those that follow it.abstract StringtoString()abstract StringtoString(SkriptPattern.StringificationProperties properties) Constructs a string representation of this pattern element.
-
Constructor Details
-
PatternElement
public PatternElement()
-
-
Method Details
-
match
-
matchNext
-
toString
-
toString
Constructs a string representation of this pattern element.- Parameters:
properties- Properties to consider during stringification.- Returns:
- A string representation of this pattern element.
-
toFullString
Deprecated, for removal: This API element is subject to removal in a future version. -
toFullString
Constructs a string representation of this pattern element and those that follow it.- Parameters:
properties- Properties to consider during stringification.- Returns:
- A string representation of this pattern element and those that follow it.
-
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 thisPatternElementand linkedPatternElements.- Parameters:
clean- Whether unnecessary data, determined by each implementation, should be excluded from the combinations.- Returns:
- The combinations.
-
toFullString(StringificationProperties).