|
Building Parsers with Java | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--sjm.parse.Parser
|
+--sjm.parse.Repetition
|
+--sjm.examples.mechanics.VerboseRepetition
The match() method of this class prints the
collection of assemblies it receives, and the new
collection it creates.
| Fields inherited from class sjm.parse.Repetition |
EXPWIDTH,
preAssembler,
subparser |
| Fields inherited from class sjm.parse.Parser |
assembler,
name |
| Constructor Summary | |
VerboseRepetition(Parser p)
Constructs a VerboseRepetition of the given parser. |
|
VerboseRepetition(Parser p,
java.lang.String name)
Constructs a VerboseRepetition of the given parser with the given name. |
|
| Method Summary | |
java.util.Vector |
match(java.util.Vector in)
Just a verbose version of Repetition.match()
. |
| Methods inherited from class sjm.parse.Repetition |
accept,
getSubparser,
randomExpansion,
setPreAssembler,
unvisitedString |
| Methods inherited from class sjm.parse.Parser |
accept,
add,
best,
bestMatch,
completeMatch,
elementClone,
getName,
matchAndAssemble,
randomInput,
setAssembler,
toString,
toString |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public VerboseRepetition(Parser p)
parser - the parser to repeat
public VerboseRepetition(Parser p,
java.lang.String name)
parser - the parser to repeatname - a name to be known by| Method Detail |
public java.util.Vector match(java.util.Vector in)
Repetition.match()
.Vector - a vector of assemblies to match against
|
by Steve Metsker | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||