Class KleeneN
- java.lang.Object
-
- org.benf.cfr.reader.bytecode.analysis.opgraph.op4rewriters.matchutil.KleeneN
-
- All Implemented Interfaces:
Matcher<StructuredStatement>
- Direct Known Subclasses:
KleenePlus
,KleeneStar
public class KleeneN extends java.lang.Object implements Matcher<StructuredStatement>
-
-
Field Summary
Fields Modifier and Type Field Description private Matcher<StructuredStatement>
inner
private int
nRequired
-
Constructor Summary
Constructors Constructor Description KleeneN(int nRequired, Matcher<StructuredStatement> inner)
KleeneN(int nRequired, Matcher<StructuredStatement>... matchers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
match(MatchIterator<StructuredStatement> matchIterator, MatchResultCollector matchResultCollector)
-
-
-
Field Detail
-
inner
private final Matcher<StructuredStatement> inner
-
nRequired
private final int nRequired
-
-
Constructor Detail
-
KleeneN
public KleeneN(int nRequired, Matcher<StructuredStatement> inner)
-
KleeneN
public KleeneN(int nRequired, Matcher<StructuredStatement>... matchers)
-
-
Method Detail
-
match
public boolean match(MatchIterator<StructuredStatement> matchIterator, MatchResultCollector matchResultCollector)
- Specified by:
match
in interfaceMatcher<StructuredStatement>
-
-