Class NamedPart

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

    public class NamedPart
    extends ProcedureN
    implements HasSetter, java.io.Externalizable
    A reference to a named feature/part of a specific object.
    See Also:
    Serialized Form
    • Constructor Detail

      • NamedPart

        public NamedPart​(java.lang.Object container,
                         java.lang.Object member,
                         char kind)
      • NamedPart

        public NamedPart​(java.lang.Object container,
                         java.lang.String mname,
                         char kind,
                         MethodProc methods)
    • Method Detail

      • 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
      • set0

        public void set0​(java.lang.Object value)
                  throws java.lang.Throwable
        Description copied from class: Procedure
        If HasSetter, the Procedure is called in the LHS of an assignment.
        Overrides:
        set0 in class Procedure
        Throws:
        java.lang.Throwable
      • set1

        public void set1​(java.lang.Object object,
                         java.lang.Object value)
                  throws java.lang.Throwable
        Overrides:
        set1 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