pj
Class PJ.Repeat

java.lang.Object
  extended by pj.PJ.Repeat
All Implemented Interfaces:
Dump.Helper, Leaf
Direct Known Subclasses:
PJ.Many, PJ.Opt, PJ.Sep, PJ.Some
Enclosing class:
PJ

protected abstract class PJ.Repeat
extends Object
implements Leaf

base class for iterative constructs.


Field Summary
protected  PJ.IdInfo i
          optional symbol.
 
Constructor Summary
protected PJ.Repeat(String id)
           
 
Method Summary
 boolean collect()
          returns true: an untyped token cannot be iterated.
 void lex(PrintWriter out)
          by default will not contribute to scanner.
 String type()
          will not return null: an untyped token cannot be iterated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface pj.Leaf
name
 
Methods inherited from interface pj.Dump.Helper
dump
 

Field Detail

i

protected final PJ.IdInfo i
optional symbol.

Constructor Detail

PJ.Repeat

protected PJ.Repeat(String id)
See Also:
PJ.IdRef(java.lang.String)
Method Detail

type

public String type()
will not return null: an untyped token cannot be iterated. By default returns java.util.ArrayList.

Specified by:
type in interface Leaf

lex

public void lex(PrintWriter out)
by default will not contribute to scanner.

Specified by:
lex in interface Leaf

collect

public boolean collect()
returns true: an untyped token cannot be iterated.

Specified by:
collect in interface Leaf