Package org.stianloader.softmap.tokens
Class StringToken
java.lang.Object
org.stianloader.softmap.tokens.Token
org.stianloader.softmap.tokens.StringToken
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal intcodepointAt(int index) final intcodepointBefore(int index) final booleancontentMatches(boolean ignoreCase, int toffset, @NotNull String other, int ooffset, int length) final booleancontentMatches(boolean ignoreCase, @NotNull String other) final booleancontentMatches(boolean ignoreCase, @NotNull String other, int ooffset) final booleancontentMatches(boolean ignoreCase, @NotNull String other, int ooffset, int length) final booleancontentMatches(@NotNull String other) final intfinal @NotNull StringgetText()final intindexOf(int codepoint) final intindexOf(int codepoint, int fromIndex) final intfinal @NotNull Stringsubtext(int from, int to) final @NotNull StringTokensubtoken(int from, int to) toString()
-
Constructor Details
-
StringToken
-
-
Method Details
-
contentMatches
@Contract(pure=true) public final boolean contentMatches(boolean ignoreCase, @NotNull @NotNull String other) -
contentMatches
@Contract(pure=true) public final boolean contentMatches(boolean ignoreCase, @NotNull @NotNull String other, int ooffset) -
contentMatches
@Contract(pure=true) public final boolean contentMatches(boolean ignoreCase, @NotNull @NotNull String other, int ooffset, int length) -
contentMatches
@Contract(pure=true) public final boolean contentMatches(boolean ignoreCase, int toffset, @NotNull @NotNull String other, int ooffset, int length) -
contentMatches
-
indexOf
@Contract(pure=true) public final int indexOf(int codepoint, int fromIndex) -
indexOf
@Contract(pure=true) public final int indexOf(int codepoint) -
getText
-
subtoken
@NotNull @Contract(pure=true, value="param1, param2 -> new") public final @NotNull StringToken subtoken(int from, int to) -
getContentLength
@Contract(pure=true) public final int getContentLength() -
codepointBefore
@Contract(pure=true) public final int codepointBefore(int index) -
codepointAt
@Contract(pure=true) public final int codepointAt(int index) -
lastCodepoint
@Contract(pure=true) public final int lastCodepoint() -
subtext
-
toString
-