Package org.apache.uima.internal.util
Class MiscImpl
- java.lang.Object
-
- org.apache.uima.internal.util.MiscImpl
-
public class MiscImpl extends Object
-
-
Constructor Summary
Constructors Constructor Description MiscImpl()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
elide(String s, int n)
static String
elide(String s, int n, boolean pad)
static String
getCaller()
static StringBuilder
getCallers(int s, int n)
static String
replaceWhiteSpace(String s, String replacement)
static void
timeLoops(String title, int iterations, Callable<Object> r)
-
-
-
Field Detail
-
blanks
public static final String blanks
- See Also:
- Constant Field Values
-
dots
public static final String dots
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCallers
public static StringBuilder getCallers(int s, int n)
- Parameters:
s
- starting frames above invokern
- max number of callers to return- Returns:
- x called by: y ...
-
getCaller
public static String getCaller()
- Returns:
- the name of the caller in the stack
-
-