Package org.eolang

Class AtAbsent

  • All Implemented Interfaces:
    Attr

    public final class AtAbsent
    extends Object
    implements Attr
    Absent attribute. This class exists only because we want to have nice and informative error messages for the attributes that are absent, but are being written or read.
    Since:
    0.1
    • Constructor Detail

    • Method Detail

      • copy

        public Attr copy​(Phi self)
        Description copied from interface: Attr
        Make a copy of it.
        Specified by:
        copy in interface Attr
        Parameters:
        self - The object that this attribute will belong to
        Returns:
        A copy
      • get

        public Phi get()
        Description copied from interface: Attr
        Take the object out.
        Specified by:
        get in interface Attr
        Returns:
        The object
      • put

        public void put​(Phi phi)
        Description copied from interface: Attr
        Put a new object in.
        Specified by:
        put in interface Attr
        Parameters:
        phi - The object to put