Interface StackTraceFilter

All Superinterfaces:
Predicate<StackTraceElement>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface StackTraceFilter extends Predicate<StackTraceElement>
Embedded domain-specific language for matching of stack trace elements.

(For application examples see the source of lljava/live/BaseCompilationContext.)

  • Method Details

    • classIs

      static StackTraceFilter classIs(Predicate<? super Class<?>> pred)
      Lift a predicate on classes to be a predicate on stackframes.
    • inToplevel

      static Predicate<Class<?>> inToplevel(Predicate<? super Class<?>> pred)
      Lift a predicate on classes to bw applied on the topmost enclosing class.
    • inPackage

      static Predicate<Class<?>> inPackage(String packageName)
      Prediacte whether the class is in the given package.
    • inPackage

      static Predicate<Class<?>> inPackage(Package pack)
      Prediacte whether the class is in the given package.
    • inPackageOf

      static Predicate<Class<?>> inPackageOf(Class<?> cls)
      Prediacte whether the class is in the package of the given class.
    • subclassOf

      static Predicate<Class<?>> subclassOf(Class<?> sup)
      Prediacte whether the class is a subclass of the given class.