Class EvidenceCollector


  • public final class EvidenceCollector
    extends Object
    Accumulates the bytecode locations that satisfied a query, so results stay navigable.
    • Constructor Detail

      • EvidenceCollector

        public EvidenceCollector()
    • Method Detail

      • record

        public void record​(String className,
                           String methodName,
                           String descriptor,
                           int pc,
                           String label)
        Appends a matched location.
        Parameters:
        className - the owning class name
        methodName - the owning method name
        descriptor - the owning method descriptor
        pc - the bytecode offset of the matching instruction
        label - a description of what matched
      • isEmpty

        public boolean isEmpty()
        Returns:
        whether nothing has been recorded