eu.bandm.tools.ulex
Class ULex.ConstMap<T>
java.lang.Object
eu.bandm.tools.ulex.ULex<T>
eu.bandm.tools.ulex.ULex.ConstMap<T>
- Enclosing class:
- ULex<T>
public static class ULex.ConstMap<T>
- extends ULex<T>
Accepts a longest prefix match from a
set of constant String values and returns the values defined by
the map argument; or throws
ULex.ExceptionFail
.
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> |
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 |
maps
protected SortedMap<Integer,Map<String,T>> maps
values
protected Map<String,T> values
ULex.ConstMap
public ULex.ConstMap(Map<String,T> values)
tryParse
protected T tryParse(ULex.State state)
- Specified by:
tryParse
in class ULex<T>
makemaps
protected void makemaps()
makemapsentry
protected void makemapsentry(String key,
T value)