kawa.lang
Class SyntaxRules

java.lang.Object
  extended by gnu.mapping.Procedure
      extended by gnu.mapping.Procedure1
          extended by kawa.lang.SyntaxRules
All Implemented Interfaces:
Named, Printable, java.io.Externalizable, java.io.Serializable

public class SyntaxRules
extends Procedure1
implements Printable, java.io.Externalizable

See Also:
Serialized Form

Constructor Summary
SyntaxRules()
           
SyntaxRules(java.lang.Object[] literal_identifiers, java.lang.Object srules, Translator tr)
           
SyntaxRules(java.lang.Object[] literal_identifiers, SyntaxRule[] rules, int maxVars)
          The compiler generates calls to this constructor.
 
Method Summary
 java.lang.Object apply1(java.lang.Object arg)
           
 java.lang.Object expand(java.lang.Object obj, Translator tr)
           
 void print(java.io.PrintWriter ps)
           
 void readExternal(java.io.ObjectInput in)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class gnu.mapping.Procedure1
apply0, apply2, apply3, apply4, applyN, numArgs
 
Methods inherited from class gnu.mapping.Procedure
apply, apply, check0, check1, check2, check3, check4, checkArgCount, checkN, getName, getProperty, getSetter, getSymbol, match0, match1, match2, match3, match4, matchN, maxArgs, minArgs, name, removeProperty, set0, set1, setN, setName, setProperty, setProperty, setSetter, setSymbol, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SyntaxRules

public SyntaxRules()

SyntaxRules

public SyntaxRules(java.lang.Object[] literal_identifiers,
                   SyntaxRule[] rules,
                   int maxVars)
The compiler generates calls to this constructor.


SyntaxRules

public SyntaxRules(java.lang.Object[] literal_identifiers,
                   java.lang.Object srules,
                   Translator tr)
Method Detail

apply1

public java.lang.Object apply1(java.lang.Object arg)
Specified by:
apply1 in class Procedure1

expand

public java.lang.Object expand(java.lang.Object obj,
                               Translator tr)

print

public void print(java.io.PrintWriter ps)
Specified by:
print in interface Printable

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException