001    package com.thaiopensource.relaxng.impl;
002    
003    class ErrorPattern extends Pattern {
004      ErrorPattern() {
005        super(false, EMPTY_CONTENT_TYPE, ERROR_HASH_CODE);
006      }
007      boolean samePattern(Pattern other) {
008        return other instanceof ErrorPattern;
009      }
010      void accept(PatternVisitor visitor) {
011        visitor.visitError();
012      }
013      Object apply(PatternFunction f) {
014        return f.caseError(this);
015      }
016    }