Class MatchOpt
- java.lang.Object
-
- org.benf.cfr.reader.bytecode.analysis.opgraph.op4rewriters.matchutil.MatchOpt
-
- All Implemented Interfaces:
Matcher<StructuredStatement>
public class MatchOpt extends java.lang.Object implements Matcher<StructuredStatement>
Note that this will match the FIRST match, not necessarily the best. I.e. no backtracking.
-
-
Field Summary
Fields Modifier and Type Field Description private Matcher<StructuredStatement>
matcher
-
Constructor Summary
Constructors Constructor Description MatchOpt(Matcher<StructuredStatement> matcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
match(MatchIterator<StructuredStatement> matchIterator, MatchResultCollector matchResultCollector)
-
-
-
Field Detail
-
matcher
private final Matcher<StructuredStatement> matcher
-
-
Constructor Detail
-
MatchOpt
public MatchOpt(Matcher<StructuredStatement> matcher)
-
-
Method Detail
-
match
public boolean match(MatchIterator<StructuredStatement> matchIterator, MatchResultCollector matchResultCollector)
- Specified by:
match
in interfaceMatcher<StructuredStatement>
-
-