Package kawa.lang

Class RecordConstructor

All Implemented Interfaces:
Named

public class RecordConstructor extends ProcedureN
  • Constructor Details

    • RecordConstructor

      public RecordConstructor(ClassType type, Field[] fields)
    • RecordConstructor

      public RecordConstructor(Class clas, Field[] fields)
    • RecordConstructor

      public RecordConstructor(Class clas)
    • RecordConstructor

      public RecordConstructor(ClassType type)
    • RecordConstructor

      public RecordConstructor(Class clas, Object fieldsList)
    • RecordConstructor

      public RecordConstructor(ClassType type, Object fieldsList)
  • 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
    • getName

      public String getName()
      Specified by:
      getName in interface Named
      Overrides:
      getName in class PropertySet
    • applyN

      public Object applyN(Object[] args)
      Overrides:
      applyN in class Procedure