|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fri.patterns.interpreter.parsergenerator.lexer.semantics.LexerReflectSemantic
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
Constructor Summary | |
LexerReflectSemantic()
|
Method Summary | |
java.util.Set |
getIgnoredNonterminals()
Returns null as getWantedNonterminals() is provided. |
java.util.Set |
getWantedNonterminals()
Provides the Set of wanted nonterminal Strings by searching for public void methods with (String, Token.Range) arguments. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LexerReflectSemantic()
Method Detail |
public void ruleEvaluated(Rule rule, ResultTree resultTree)
ruleEvaluated
in interface LexerSemantic
public java.util.Set getWantedNonterminals()
getWantedNonterminals
in interface LexerSemantic
public java.util.Set getIgnoredNonterminals()
getIgnoredNonterminals
in interface LexerSemantic
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |