Class PJ.Directive

  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:

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
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


protected PJ.Directive(ArrayList operators)
Method Detail


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

macros - false on first, true on second pass.


public 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.