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,Externalizable,Serializable
public class SyntaxRules extends Procedure1 implements gnu.kawa.format.Printable, 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(Object[] literal_identifiers, SyntaxRule[] rules, int maxVars, Object name)The compiler generates calls to this constructor.SyntaxRules(Object ellipsis, Object[] literal_identifiers, Object srules, Translator tr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectapply1(Object arg)Objectexpand(Object obj, Translator tr)voidprint(Consumer out)voidreadExternal(ObjectInput in)voidwriteExternal(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(Object[] literal_identifiers, SyntaxRule[] rules, int maxVars, Object name)
The compiler generates calls to this constructor.
-
SyntaxRules
public SyntaxRules(Object ellipsis, Object[] literal_identifiers, Object srules, Translator tr)
-
-
Method Detail
-
apply1
public Object apply1(Object arg)
- Specified by:
apply1in classProcedure1
-
expand
public Object expand(Object obj, Translator tr)
-
print
public void print(Consumer out)
- Specified by:
printin interfacegnu.kawa.format.Printable
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
-