Package ch.njol.skript.patterns
Class LiteralPatternElement
java.lang.Object
ch.njol.skript.patterns.PatternElement
ch.njol.skript.patterns.LiteralPatternElement
A
PatternElement that contains a literal string to be matched, for example hello world.
This element does not handle spaces as would be expected.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCombinations(boolean clean) Gets the combinations available to thisPatternElement.booleanisEmpty()@Nullable MatchResultmatch(String expr, MatchResult matchResult) toString()Methods inherited from class ch.njol.skript.patterns.PatternElement
getAllCombinations, matchNext, toFullString
-
Constructor Details
-
LiteralPatternElement
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
match
- Specified by:
matchin classPatternElement
-
toString
- Specified by:
toStringin classPatternElement
-
getCombinations
Description copied from class:PatternElementGets the combinations available to thisPatternElement.- Specified by:
getCombinationsin classPatternElement- Parameters:
clean- Whether unnecessary data, determined by each implementation, should be excluded from the combinations.- Returns:
- The combinations.
-