1 21 22 package net.percederberg.grammatica.parser.re; 23 24 import java.io.IOException ; 25 import java.io.PrintStream ; 26 import java.io.PrintWriter ; 27 28 import net.percederberg.grammatica.parser.LookAheadReader; 29 30 38 abstract class Element implements Cloneable { 39 40 48 public abstract Object clone(); 49 50 67 public abstract int match(Matcher m, 68 LookAheadReader input, 69 int start, 70 int skip) 71 throws IOException ; 72 73 79 public final void printTo(PrintStream output, String indent) { 80 PrintWriter writer = new PrintWriter (output); 81 82 printTo(writer, indent); 83 writer.flush(); 84 } 85 86 92 public abstract void printTo(PrintWriter output, String indent); 93 94 } 95 | Popular Tags |