Class AnnotationFilter.Builder
- java.lang.Object
-
- com.tonic.analysis.instrumentation.filter.AnnotationFilter.Builder
-
- Enclosing class:
- AnnotationFilter
public static class AnnotationFilter.Builder extends Object
Builder for AnnotationFilter instances.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotationFilter.BuilderannotationType(String annotationType)Sets the annotation type descriptor to match.AnnotationFilterbuild()Builds the filter.AnnotationFilter.BuildercheckClass(boolean checkClass)Sets whether class annotations are checked.AnnotationFilter.BuildercheckMethod(boolean checkMethod)Sets whether method annotations are checked.AnnotationFilter.BuildermatchPresent(boolean matchPresent)Sets whether the filter matches on annotation presence or absence.
-
-
-
Method Detail
-
annotationType
public AnnotationFilter.Builder annotationType(String annotationType)
Sets the annotation type descriptor to match.- Parameters:
annotationType- the annotation type descriptor- Returns:
- this builder
-
matchPresent
public AnnotationFilter.Builder matchPresent(boolean matchPresent)
Sets whether the filter matches on annotation presence or absence.- Parameters:
matchPresent- true to match when the annotation is present, false when absent- Returns:
- this builder
-
checkClass
public AnnotationFilter.Builder checkClass(boolean checkClass)
Sets whether class annotations are checked.- Parameters:
checkClass- true to check class annotations- Returns:
- this builder
-
checkMethod
public AnnotationFilter.Builder checkMethod(boolean checkMethod)
Sets whether method annotations are checked.- Parameters:
checkMethod- true to check method annotations- Returns:
- this builder
-
build
public AnnotationFilter build()
Builds the filter.- Returns:
- the built AnnotationFilter
-
-