Package kawa.lang
Class SyntaxRules
- java.lang.Object
-
- gnu.mapping.PropertySet
-
- gnu.mapping.Procedure
-
- gnu.mapping.Procedure1
-
- kawa.lang.SyntaxRules
-
- All Implemented Interfaces:
gnu.kawa.format.Printable,Named,java.io.Externalizable,java.io.Serializable
public class SyntaxRules extends Procedure1 implements gnu.kawa.format.Printable, java.io.Externalizable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class gnu.mapping.Procedure1
applyToObject
-
Fields inherited from class gnu.mapping.Procedure
applyMethodType, applyToConsumerDefault, applyToConsumerMethod, applyToObjectDefault, applyToObjectMethod, compilerKey, compilerXKey, inlineIfConstantSymbol, validateApplyKey, validateXApplyKey
-
Fields inherited from class gnu.mapping.PropertySet
nameKey
-
-
Constructor Summary
Constructors Constructor Description SyntaxRules()SyntaxRules(java.lang.Object[] literal_identifiers, SyntaxRule[] rules, int maxVars, java.lang.Object name)The compiler generates calls to this constructor.SyntaxRules(java.lang.Object ellipsis, java.lang.Object[] literal_identifiers, java.lang.Object srules, Translator tr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectapply1(java.lang.Object arg)java.lang.Objectexpand(java.lang.Object obj, Translator tr)voidprint(Consumer out)voidreadExternal(java.io.ObjectInput in)voidwriteExternal(java.io.ObjectOutput out)-
Methods inherited from class gnu.mapping.Procedure1
apply0, apply2, apply3, apply4, applyN, applyToObject, numArgs
-
Methods inherited from class gnu.mapping.Procedure
applyL, applyToConsumerDefault, applyToObjectDefault, checkArgCount, checkBadCode, getApplyMethod, getApplyToConsumerMethod, getApplyToObjectMethod, getReturnType, getSetter, getSourceLocation, isSideEffectFree, lookupApplyHandle, maxArgs, maxArgs, minArgs, minArgs, set0, set1, setN, setSetter, setSourceLocation, toString
-
Methods inherited from class gnu.mapping.PropertySet
getName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbol
-
-
-
-
Constructor Detail
-
SyntaxRules
public SyntaxRules()
-
SyntaxRules
public SyntaxRules(java.lang.Object[] literal_identifiers, SyntaxRule[] rules, int maxVars, java.lang.Object name)The compiler generates calls to this constructor.
-
SyntaxRules
public SyntaxRules(java.lang.Object ellipsis, 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:
apply1in classProcedure1
-
expand
public java.lang.Object expand(java.lang.Object obj, Translator tr)
-
print
public void print(Consumer out)
- Specified by:
printin interfacegnu.kawa.format.Printable
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException- Specified by:
writeExternalin interfacejava.io.Externalizable- Throws:
java.io.IOException
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException- Specified by:
readExternalin interfacejava.io.Externalizable- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
-