eu.bandm.tools.ulex
Class ULex.SemanticPattern<R>

java.lang.Object
  extended by eu.bandm.tools.ulex.ULex<R>
      extended by eu.bandm.tools.ulex.ULex.SemanticPattern<R>
Direct Known Subclasses:
ULex.Pattern, ULex.PatternInteger, ULex.PatternLength
Enclosing class:
ULex<T>

public abstract static class ULex.SemanticPattern<R>
extends ULex<R>

Accepts a regular expression pattern as defined by Pattern and returns what the user-defined method semantics(String) calculates from it.


Nested Class Summary
 
Nested classes/interfaces inherited from class eu.bandm.tools.ulex.ULex
ULex.Alt<A>, ULex.CharSet, ULex.Concatenate, ULex.Const, ULex.ConstMap<T>, ULex.DecimalDigit, ULex.End, ULex.ExceptionFail, ULex.Fail<T>, ULex.Int, ULex.Length<T>, ULex.Natural, ULex.Natural_0, ULex.Negate, ULex.Opt<S>, ULex.Pattern, ULex.PatternInteger, ULex.PatternLength, ULex.Plus<S>, ULex.SemanticPattern<R>, ULex.Seq<A,B,R>, ULex.Seq_1<A,B>, ULex.Seq_2<A,B>, ULex.SkipWhitespace<S>, ULex.Star<S>, ULex.State, ULex.ToLower<S>
 
Field Summary
protected  Pattern pattern
           
protected  String patternString
           
 
Fields inherited from class eu.bandm.tools.ulex.ULex
EXCEPTION_FAIL, result
 
Constructor Summary
ULex.SemanticPattern(String patternString)
           
 
Method Summary
protected abstract  R semantics(String s)
           
protected  R tryParse(ULex.State state)
           
 
Methods inherited from class eu.bandm.tools.ulex.ULex
alt, alt, alt, alt, charSet, concatenate, concatenate, concatenate, constMap, end, fail, konst, length, negate, opt, parse, pattern, patternLength, plus, seq_1, seq_2, skipWhitespace, star, state, state, toLower
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pattern

protected Pattern pattern

patternString

protected String patternString
Constructor Detail

ULex.SemanticPattern

public ULex.SemanticPattern(String patternString)
Method Detail

tryParse

protected R tryParse(ULex.State state)
Specified by:
tryParse in class ULex<R>

semantics

protected abstract R semantics(String s)