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 Object
apply1(Object arg)
Object
expand(Object obj, Translator tr)
void
print(Consumer out)
void
readExternal(ObjectInput in)
void
writeExternal(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:
apply1
in classProcedure1
-
expand
public Object expand(Object obj, Translator tr)
-
print
public void print(Consumer out)
- Specified by:
print
in interfacegnu.kawa.format.Printable
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
-