01: package org.kohsuke.rngom.binary;
02:
03: import org.kohsuke.rngom.binary.visitor.PatternFunction;
04: import org.kohsuke.rngom.binary.visitor.PatternVisitor;
05:
06: public class AfterPattern extends BinaryPattern {
07: AfterPattern(Pattern p1, Pattern p2) {
08: super (false, combineHashCode(AFTER_HASH_CODE, p1.hashCode(), p2
09: .hashCode()), p1, p2);
10: }
11:
12: boolean isNotAllowed() {
13: return p1.isNotAllowed();
14: }
15:
16: public Object apply(PatternFunction f) {
17: return f.caseAfter(this );
18: }
19:
20: public void accept(PatternVisitor visitor) {
21: visitor.visitAfter(p1, p2);
22: }
23: }
|