net.jangaroo.extxml.util
Class Rule<State>

java.lang.Object
  extended by net.jangaroo.extxml.util.Rule<State>

public abstract class Rule<State>
extends Object

A Rule defines a regular expression (Pattern) and code to be executed when a line matches that pattern. The code will be invoked with the current State.


Constructor Summary
Rule(String pattern)
           
 
Method Summary
 Matcher createMatcher(String line)
           
abstract  void matched(State state, List<String> groups)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rule

public Rule(String pattern)
Method Detail

createMatcher

public Matcher createMatcher(String line)

matched

public abstract void matched(State state,
                             List<String> groups)


Copyright © 2002-2011 CoreMedia AG. All Rights Reserved.