1 30 31 package de.susebox.jtopas.spi; 32 33 import de.susebox.jtopas.TokenizerProperty; 37 import de.susebox.jtopas.TokenizerException; 38 39 40 44 56 public interface PatternHandler { 57 58 66 public boolean hasPattern(); 67 68 93 public PatternHandler.Result matches(DataProvider dataProvider) 94 throws TokenizerException, NullPointerException ; 95 96 97 101 104 public static interface Result { 105 106 113 public TokenizerProperty getProperty(); 114 115 120 public int getLengthOfMatch(); 121 122 134 public String [] getGroups() throws TokenizerException; 135 } 136 } 137 138 | Popular Tags |