Package com.tonic.analysis.query.eval
Class EvidenceCollector
- java.lang.Object
-
- com.tonic.analysis.query.eval.EvidenceCollector
-
public final class EvidenceCollector extends Object
Accumulates the bytecode locations that satisfied a query, so results stay navigable.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEvidenceCollector.HitA single matched location.
-
Constructor Summary
Constructors Constructor Description EvidenceCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<EvidenceCollector.Hit>hits()booleanisEmpty()voidrecord(String className, String methodName, String descriptor, int pc, String label)Appends a matched location.
-
-
-
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 namemethodName- the owning method namedescriptor- the owning method descriptorpc- the bytecode offset of the matching instructionlabel- a description of what matched
-
hits
public List<EvidenceCollector.Hit> hits()
- Returns:
- the live hit list, in record order
-
isEmpty
public boolean isEmpty()
- Returns:
- whether nothing has been recorded
-
-