|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--xrel.analyzer.PatternMatching
Contains the run-time pattern matching algorithm. The method matchWith calls the algorithm for pattern matching.
N.B.:
| Fields inherited from interface xrel.parser.SymElementKind |
EXPRESSION, LABEL, PATTERN, S_EXPRESSIONS, S_LABELS, S_PATTERNS, S_TYPES, S_VARIABLES, TYPE, UNDEFINED, VARIABLE |
| Constructor Summary | |
PatternMatching()
|
|
| Method Summary | |
static SimpleNode |
getEvaluation()
Evaluates the output value. |
static int |
matchWith(SymTable st,
SimpleNode value,
java.io.PrintStream out,
boolean debug)
The main method of this class. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PatternMatching()
| Method Detail |
public static int matchWith(SymTable st,
SimpleNode value,
java.io.PrintStream out,
boolean debug)
value - the value to check. The patterns are passed throughout
the symbol table.out - where to print out debug informationdebug - if true print out debug informationpublic static SimpleNode getEvaluation()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||