Package gnu.kawa.xml
Class OutputAsXML
- java.lang.Object
-
- gnu.mapping.PropertySet
-
- gnu.mapping.Procedure
-
- gnu.mapping.Procedure1
-
- gnu.kawa.xml.OutputAsXML
-
- All Implemented Interfaces:
Named
public class OutputAsXML extends Procedure1
A 1-argument Procedure that takes a value and return output in XML syntax.
-
-
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 OutputAsXML()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
apply1(Object arg)
int
numArgs()
ReturnminArgs()|(maxArgs<<12)
.-
Methods inherited from class gnu.mapping.Procedure1
apply0, apply2, apply3, apply4, applyN, applyToObject
-
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
-
-
-
-
Method Detail
-
numArgs
public int numArgs()
Description copied from class:Procedure
ReturnminArgs()|(maxArgs<<12)
. We use a single virtual function to reduce the number of methods in the system, as well as the number of virtual method table entries. We shift by 12 so the number can normally be represented using a sipush instruction, without requiring a constant pool entry.- Overrides:
numArgs
in classProcedure1
-
apply1
public Object apply1(Object arg)
- Specified by:
apply1
in classProcedure1
-
-