pj
Class PJ.Directive

java.lang.Object
  extended by java.util.AbstractCollection
      extended by java.util.AbstractList
          extended by java.util.ArrayList
              extended by pj.PJ.Directive
All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, List, RandomAccess
Direct Known Subclasses:
PJ.Left, PJ.Nonassoc, PJ.Right, PJ.Scan, PJ.Screen, PJ.Skip, PJ.Token
Enclosing class:
PJ

protected abstract class PJ.Directive
extends ArrayList

List<PJ.Info> base class for directives, flattens content.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
protected PJ.Directive(ArrayList operators)
           
 
Method Summary
abstract  void lex(boolean macros, PrintWriter out)
          emit JLex rule.
 void prolog(PrintWriter out)
          contribute to prolog, can be overwritten in subclass.
protected  void prolog(PrintWriter out, String kind)
          common code to create line in precedence table.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

PJ.Directive

protected PJ.Directive(ArrayList operators)
Method Detail

lex

public abstract void lex(boolean macros,
                         PrintWriter out)
emit JLex rule.

Parameters:
macros - false on first, true on second pass.

prolog

public void prolog(PrintWriter out)
contribute to prolog, can be overwritten in subclass.


prolog

protected void prolog(PrintWriter out,
                      String kind)
common code to create line in precedence table.