Package gnu.kawa.xml

Class OutputAsXML

All Implemented Interfaces:
Named

public class OutputAsXML extends Procedure1
A 1-argument Procedure that takes a value and return output in XML syntax.
  • Constructor Details

    • OutputAsXML

      public OutputAsXML()
  • Method Details

    • numArgs

      public int numArgs()
      Description copied from class: Procedure
      Return minArgs()|(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 class Procedure1
    • apply1

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