Package org.eolang

Class AtVoid

  • All Implemented Interfaces:
    Attr

    public final class AtVoid
    extends Object
    implements Attr
    Void attribute.

    The attribute is not yet set, but can be set. It's writable, but only once.

    Since:
    0.1
    • Constructor Detail

      • AtVoid

        public AtVoid​(String name)
        Ctor.
        Parameters:
        name - The name of the attribute
    • 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.

        If attribute is not set - throws ExUnset.

        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