Class AnnotationScannerAction
- java.lang.Object
-
- org.glassfish.pfl.tf.tools.enhancer.AnnotationScannerAction
-
- All Implemented Interfaces:
java.util.function.Predicate<FileWrapper>,UnaryPredicate<FileWrapper>,Scanner.Action
public class AnnotationScannerAction extends java.lang.Object implements Scanner.Action
Scan all classes looking for annotations annotated with @MethodMonitorGroup, and saves the internal names of any such annotations.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classAnnotationScannerAction.AnnoScannerprivate classAnnotationScannerAction.ClassScanner
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<java.lang.String>annotationNamesprivate java.lang.StringcurrentClassprivate static java.lang.Class<MethodMonitorGroup>MMG_CLASSprivate static java.lang.StringMMG_DESCRIPTORprivate TimingInfoProcessortipprivate Utilutil
-
Constructor Summary
Constructors Constructor Description AnnotationScannerAction(Util util, TimingInfoProcessor tip)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanevaluate(FileWrapper fw)java.util.Set<java.lang.String>getAnnotationNames()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.glassfish.pfl.basic.func.UnaryPredicate
test
-
-
-
-
Field Detail
-
MMG_CLASS
private static java.lang.Class<MethodMonitorGroup> MMG_CLASS
-
MMG_DESCRIPTOR
private static java.lang.String MMG_DESCRIPTOR
-
util
private final Util util
-
tip
private final TimingInfoProcessor tip
-
annotationNames
private java.util.Set<java.lang.String> annotationNames
-
currentClass
private java.lang.String currentClass
-
-
Constructor Detail
-
AnnotationScannerAction
AnnotationScannerAction(Util util, TimingInfoProcessor tip)
-
-
Method Detail
-
getAnnotationNames
public java.util.Set<java.lang.String> getAnnotationNames()
-
evaluate
public boolean evaluate(FileWrapper fw)
- Specified by:
evaluatein interfaceUnaryPredicate<FileWrapper>
-
-