pj
Class PJ.Action

java.lang.Object
  extended by java.util.AbstractCollection
      extended by java.util.AbstractList
          extended by java.util.ArrayList
              extended by pj.PJ.Rhs
                  extended by pj.PJ.Action
All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, List, RandomAccess, Dump.Helper
Enclosing class:
PJ

protected class PJ.Action
extends PJ.Rhs

represents a right hand side which calls an action.

See Also:
Serialized Form

Field Summary
protected  String action
          action method and class name.
 
Fields inherited from class pj.PJ.Rhs
optPrec
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
protected PJ.Action(ArrayList items, Object optPrec, String action)
           
 
Method Summary
protected  void action(PrintWriter out)
          create action call.
 void dump(Dump sender, Class c, Object o)
           
 boolean factory(PrintWriter out, PJ.IdInfo ii, boolean flatten)
          implement factory method and tree class.
protected  String header(ArrayList types, ArrayList parms)
          create action method header.
 void prolog(PrintWriter out, PJ.IdInfo ii)
          create action declaration.
 
Methods inherited from class pj.PJ.Rhs
lex, rules
 
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
 

Field Detail

action

protected final String action
action method and class name.

Constructor Detail

PJ.Action

protected PJ.Action(ArrayList items,
                    Object optPrec,
                    String action)
See Also:
PJ.typed
Method Detail

header

protected String header(ArrayList types,
                        ArrayList parms)
create action method header.

Parameters:
types - set with parameter types, in order.
parms - set with parameter names, in order.

factory

public boolean factory(PrintWriter out,
                       PJ.IdInfo ii,
                       boolean flatten)
implement factory method and tree class.

Overrides:
factory in class PJ.Rhs
Parameters:
out - can be null just to check the result.
Returns:
true unless action is left abstract.

prolog

public void prolog(PrintWriter out,
                   PJ.IdInfo ii)
create action declaration.

Overrides:
prolog in class PJ.Rhs

action

protected void action(PrintWriter out)
create action call.

Specified by:
action in class PJ.Rhs

dump

public void dump(Dump sender,
                 Class c,
                 Object o)