| java.lang.Object fri.patterns.interpreter.parsergenerator.lexer.semantics.LexerReflectSemantic
LexerReflectSemantic | abstract public class LexerReflectSemantic implements LexerSemantic(Code) | | A LexerSemantic that provides the Set of wanted String nonterminals
by method reflection. Callback methods must be of the form
public void EncodingDecl(ResultTree resultTree) {
this.encodingDecl = resultTree.toString();
}
Created on 21.09.2005
author: Fritz Ritzberger |
Method Summary | |
public Set | getIgnoredNonterminals() Returns null as getWantedNonterminals() is provided. | public Set | getWantedNonterminals() Provides the Set of wanted nonterminal Strings by searching for
public void methods with (String, Token.Range) arguments. | public void | ruleEvaluated(Rule rule, ResultTree resultTree) As expected, this method delegates to the method that is named like the
nonterminal of the passed Rule, with resultTree as the only argument. |
getIgnoredNonterminals | public Set getIgnoredNonterminals()(Code) | | Returns null as getWantedNonterminals() is provided.
|
getWantedNonterminals | public Set getWantedNonterminals()(Code) | | Provides the Set of wanted nonterminal Strings by searching for
public void methods with (String, Token.Range) arguments.
|
ruleEvaluated | public void ruleEvaluated(Rule rule, ResultTree resultTree)(Code) | | As expected, this method delegates to the method that is named like the
nonterminal of the passed Rule, with resultTree as the only argument.
|
|
|