fr.umlv.tatoo.runtime.tools.builder
Class Builder.ExpertParserBuilder<T,N,P,V>
java.lang.Object
fr.umlv.tatoo.runtime.tools.builder.Builder.ExpertParserBuilder<T,N,P,V>
- Enclosing class:
- Builder
public static class Builder.ExpertParserBuilder<T,N,P,V>
- extends Object
|
Method Summary |
Parser<T,N,P,V> |
create()
Create a new parser. |
Builder.ExpertParserBuilder<T,N,P,V> |
defaultErrorPolicy(ParserErrorRecoveryListener<? super T,? super N> errorRecoveryListener)
|
Builder.ExpertParserBuilder<T,N,P,V> |
defaultLookaheadMap()
|
Builder.ExpertParserBuilder<T,N,P,V> |
errorPolicy(ParserErrorRecoveryPolicy<T,N,P,V> policy)
|
Builder.ExpertParserBuilder<T,N,P,V> |
lookaheadMap(LookaheadMap<? extends T,? super V> lookaheadMap)
|
Builder.ExpertParserBuilder<T,N,P,V> |
noErrorPolicy(ParserWarningReporter<T,N,P,V> parserWarningReporter)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
noErrorPolicy
public Builder.ExpertParserBuilder<T,N,P,V> noErrorPolicy(ParserWarningReporter<T,N,P,V> parserWarningReporter)
- Parameters:
parserWarningReporter - - See Also:
DefaultParserWarningReporter
defaultErrorPolicy
public Builder.ExpertParserBuilder<T,N,P,V> defaultErrorPolicy(ParserErrorRecoveryListener<? super T,? super N> errorRecoveryListener)
- Parameters:
errorRecoveryListener - - See Also:
errorPolicy(ParserErrorRecoveryPolicy)
errorPolicy
public Builder.ExpertParserBuilder<T,N,P,V> errorPolicy(ParserErrorRecoveryPolicy<T,N,P,V> policy)
defaultLookaheadMap
public Builder.ExpertParserBuilder<T,N,P,V> defaultLookaheadMap()
lookaheadMap
public Builder.ExpertParserBuilder<T,N,P,V> lookaheadMap(LookaheadMap<? extends T,? super V> lookaheadMap)
create
public Parser<T,N,P,V> create()
- Create a new parser.
If no version is set, the default version is used.
If no start non terminal is set, default start non terminal
is used.
If no lookaheadMap is defined, the
default lookahead map is used.
- Returns:
- a new parser.