Package org.antlr.v4.misc
Class Utils
java.lang.Object
org.antlr.v4.misc.Utils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static interface
static interface
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
capitalize
(String s) static String
static <T> T
Find exact object type or subclass of cl in liststatic <T> int
indexOf
(List<? extends T> elems, Utils.Filter<T> filter) static String
static <T> int
lastIndexOf
(List<? extends T> elems, Utils.Filter<T> filter) static <T extends GrammarAST>
List<String> nodesToStrings
(List<T> nodes) static <From,
To> List <To> select
(List<From> list, Utils.Func1<From, To> selector) apply methodName to list and return list of results.static void
static String
static String
stripFileExtension
(String name) static void
writeSerializedATNIntegerHistogram
(String filename, IntegerList serializedATN)
-
Field Details
-
INTEGER_POOL_MAX_VALUE
public static final int INTEGER_POOL_MAX_VALUE- See Also:
-
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
stripFileExtension
-
join
-
sortLinesInString
-
nodesToStrings
-
writeSerializedATNIntegerHistogram
-
capitalize
-
decapitalize
-
select
apply methodName to list and return list of results. method has no args. This pulls data out of a list essentially. -
find
Find exact object type or subclass of cl in list -
indexOf
-
lastIndexOf
-
setSize
-