| Constructor and Description |
|---|
StackElementFilter() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
accept(StackTraceElement element)
Tests whether or not the specified
StackTraceElement should be
accepted when computing a stack hash. |
static StackElementFilter |
any()
Creates a
StackElementFilter that accepts any stack trace elements |
static StackElementFilter |
byPattern(List<Pattern> excludes)
Creates a
StackElementFilter by exclusion patterns |
static StackElementFilter |
withSourceInfo()
Creates a
StackElementFilter that accepts all stack trace elements with a non null
{@link StackTraceElement#getFileName()} filename and positive StackTraceElement.getLineNumber() line number} |
public abstract boolean accept(StackTraceElement element)
StackTraceElement should be
accepted when computing a stack hash.element - The StackTraceElement to be testedtrue if and only if element should be acceptedpublic static final StackElementFilter any()
StackElementFilter that accepts any stack trace elementspublic static final StackElementFilter withSourceInfo()
StackElementFilter that accepts all stack trace elements with a non null
{@link StackTraceElement#getFileName()} filename and positive StackTraceElement.getLineNumber() line number}public static final StackElementFilter byPattern(List<Pattern> excludes)
StackElementFilter by exclusion patternsexcludes - regular expressions matching StackTraceElement to filter outCopyright © 2013–2021. All rights reserved.