Class TextElement
java.lang.Object
io.github.syst3ms.skriptparser.pattern.TextElement
- All Implemented Interfaces:
PatternElement
Text inside of a pattern. Is case and whitespace insensitive.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TextElement
-
-
Method Details
-
getText
-
equals
-
match
Description copied from interface:PatternElementAttempts to match thePatternElementto a string at a specified index. About the index, make sure to never increment the index by some arbitrary value when returning- Specified by:
matchin interfacePatternElement- Parameters:
s- the string to match this PatternElement againstindex- the index of the string at which this PatternElement should be matched- Returns:
- the index at which the matching should continue afterwards if successful. Otherwise, -1
-
toString
-