Package gnu.kawa.xml

Class MakeAttribute

All Implemented Interfaces:
Inlineable, Named

public class MakeAttribute extends NodeConstructor
  • Field Details

    • makeAttribute

      public static final MakeAttribute makeAttribute
    • makeAttributeS

      public static final MakeAttribute makeAttributeS
    • makeAttributeExp

      public static final QuoteExp makeAttributeExp
  • 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 Procedure
    • startAttribute

      public static void startAttribute(Consumer out, Symbol type)
    • applyToConsumer

      public static Object applyToConsumer(Procedure proc, CallContext ctx) throws Throwable
      Throws:
      Throwable
    • compileToNode

      public void compileToNode(ApplyExp exp, Compilation comp, ConsumerTarget target)
      Specified by:
      compileToNode in class NodeConstructor
    • getReturnType

      public Type getReturnType(Expression[] args)
      Description copied from class: Procedure
      Semi-deprecated - instead should be set at Inline time. FIXME
      Overrides:
      getReturnType in class NodeConstructor