001 package com.thaiopensource.relaxng.impl;
002
003
004 class AfterPattern extends BinaryPattern {
005 AfterPattern(Pattern p1, Pattern p2) {
006 super(false,
007 combineHashCode(AFTER_HASH_CODE, p1.hashCode(), p2.hashCode()),
008 p1,
009 p2);
010 }
011
012 boolean isNotAllowed() {
013 return p1.isNotAllowed();
014 }
015
016 Object apply(PatternFunction f) {
017 return f.caseAfter(this);
018 }
019 void accept(PatternVisitor visitor) {
020 // XXX visitor.visitAfter(p1, p2);
021 }
022 }