Class MiscImpl

java.lang.Object
org.apache.uima.internal.util.MiscImpl

public class MiscImpl extends Object
  • Field Details

  • Constructor Details

    • MiscImpl

      public MiscImpl()
  • Method Details

    • replaceWhiteSpace

      public static String replaceWhiteSpace(String s, String replacement)
    • getCallers

      public static StringBuilder getCallers(int s, int n)
      Parameters:
      s - starting frames above invoker
      n - 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
    • elide

      public static String elide(String s, int n)
    • elide

      public static String elide(String s, int n, boolean pad)
    • timeLoops

      public static void timeLoops(String title, int iterations, Callable<Object> r) throws Exception
      Throws:
      Exception