Package revxrsal.commands.util
Class StackTraceSanitizer.Builder
java.lang.Object
revxrsal.commands.util.StackTraceSanitizer.Builder
- Enclosing class:
- StackTraceSanitizer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Constructs theStackTraceSanitizer
from the configurationignoreClasses
(@NotNull Class<?>... classes) Strips all the given classes from the traceignoreMethod
(@NotNull String methodName) Strips all traces that point to the given method nameStrips all native methods.ignorePackage
(@NotNull Package pkg) Strips all classes that belong to the given packageignorePackage
(@NotNull String packageName) Strips all classes that belong to the given package name
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ignoreClasses
Strips all the given classes from the trace- Parameters:
classes
- Classes to strip- Returns:
- This builder
-
ignorePackage
Strips all classes that belong to the given package name- Parameters:
packageName
- Package name to strip- Returns:
- This builder
-
ignorePackage
Strips all classes that belong to the given package- Parameters:
pkg
- Package to strip its classes- Returns:
- This builder
-
ignoreMethod
Strips all traces that point to the given method name- Parameters:
methodName
- The method name to strip- Returns:
- This builder
-
ignoreNativeMethods
Strips all native methods.- Returns:
- This builder
-
build
Constructs theStackTraceSanitizer
from the configuration- Returns:
- The newly created sanitizer
-