Class Utils
java.lang.Object
org.graalvm.shadowed.org.antlr.v4.runtime.misc.Utils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intstatic StringescapeWhitespace(String s, boolean escapeSpaces) static StringexpandTabs(String s, int tabSize) static <T> Stringstatic <T> Stringstatic Stringnewlines(int n) static intnumNonnull(Object[] data) static char[]static char[]static <T> voidremoveAllElements(Collection<T> data, T value) static Stringstatic Stringspaces(int n) static char[]toCharArray(IntegerList data) Convert array of strings to string→index map.static IntervalSetstatic voidstatic void
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
join
-
join
-
numNonnull
-
removeAllElements
-
escapeWhitespace
-
writeFile
- Throws:
IOException
-
writeFile
- Throws:
IOException
-
readFile
- Throws:
IOException
-
readFile
- Throws:
IOException
-
toMap
-
toCharArray
-
toSet
-
expandTabs
-
spaces
- Since:
- 4.6
-
newlines
- Since:
- 4.6
-
sequence
-
count
- Since:
- 4.6
-