TombstoneUtils.Config.BacktraceFilterPattern

public static class TombstoneUtils.Config.BacktraceFilterPattern
extends Object

java.lang.Object
   ↳ com.android.sts.common.util.TombstoneUtils.Config.BacktraceFilterPattern


A utility class that contains patterns to filter backtraces on.

A filter matches if any of the backtrace frame matches any of the patterns.

Either filenamePattern or methodPattern can be null, in which case it will act like a wildcard pattern and matches anything.

A null filename or method name will not match any non-null pattern.

Summary

Public constructors

BacktraceFilterPattern(String filenamePattern, String methodPattern)

Constructs a BacktraceFilterPattern with the given file and method name patterns.

Public methods

boolean match(TombstoneProtos.BacktraceFrame frame)

Returns true if the current patterns match a backtrace frame.

Public constructors

BacktraceFilterPattern

public BacktraceFilterPattern (String filenamePattern, 
                String methodPattern)

Constructs a BacktraceFilterPattern with the given file and method name patterns.

Null patterns are interpreted as wildcards and match anything.

Parameters
filenamePattern String: Regex string for the filename pattern. Can be null.

methodPattern String: Regex string for the method name pattern. Can be null.

Public methods

match

public boolean match (TombstoneProtos.BacktraceFrame frame)

Returns true if the current patterns match a backtrace frame.

Parameters
frame TombstoneProtos.BacktraceFrame

Returns
boolean