Class GetNamedInstancePart

  • All Implemented Interfaces:
    HasSetter, Named, java.io.Externalizable, java.io.Serializable

    public class GetNamedInstancePart
    extends ProcedureN
    implements java.io.Externalizable, HasSetter
    The value of the Kawa Scheme expression '*:PART-NAME'. This function invokes a method or accesses a field, if the PART-NAME starts with a '.'. This syntax is semi-deprecated, since instead of (*:method-name instance args ...) you can now write (instance:method-name args ...), and instead of (*:.field-name instance) you can write instance:field-name (without the parentheses).
    See Also:
    Serialized Form
    • Constructor Detail

      • GetNamedInstancePart

        public GetNamedInstancePart()
      • GetNamedInstancePart

        public GetNamedInstancePart​(java.lang.String name)
    • Method Detail

      • setPartName

        public void setPartName​(java.lang.String name)
      • 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
      • applyN

        public java.lang.Object applyN​(java.lang.Object[] args)
                                throws java.lang.Throwable
        Overrides:
        applyN in class Procedure
        Throws:
        java.lang.Throwable
      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
      • readExternal

        public void readExternal​(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Specified by:
        readExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException