Class ProbeCounter


  • class ProbeCounter
    extends ClassProbesVisitor
    Internal class to remember the total number of probes required for a class.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int count  
      private boolean methods  
      • Fields inherited from class org.objectweb.asm.ClassVisitor

        api, cv
    • Constructor Summary

      Constructors 
      Constructor Description
      ProbeCounter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) int getCount()  
      (package private) boolean hasMethods()  
      MethodProbesVisitor visitMethod​(int access, java.lang.String name, java.lang.String desc, java.lang.String signature, java.lang.String[] exceptions)
      When visiting a method we need a MethodProbesVisitor to handle the probes of that method.
      void visitTotalProbeCount​(int count)
      Reports the total number of encountered probes.
      • Methods inherited from class org.objectweb.asm.ClassVisitor

        getDelegate, visit, visitAnnotation, visitAttribute, visitEnd, visitField, visitInnerClass, visitModule, visitNestHost, visitNestMember, visitOuterClass, visitPermittedSubclass, visitRecordComponent, visitSource, visitTypeAnnotation
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • count

        private int count
      • methods

        private boolean methods
    • Constructor Detail

      • ProbeCounter

        ProbeCounter()
    • Method Detail

      • visitTotalProbeCount

        public void visitTotalProbeCount​(int count)
        Description copied from class: ClassProbesVisitor
        Reports the total number of encountered probes. This method is called just before ClassVisitor.visitEnd()
        Specified by:
        visitTotalProbeCount in class ClassProbesVisitor
        Parameters:
        count - total number of probes
      • getCount

        int getCount()
      • hasMethods

        boolean hasMethods()
        Returns:
        true if the class has non-abstract methods other than a static initializer