Package org.eolang

Class AtFree

  • All Implemented Interfaces:
    Attr, Term

    public final class AtFree
    extends Object
    implements Attr
    Free attribute. The attribute is not yet set, but can be set. It's writable, but only once.
    Since:
    0.1
    • Constructor Detail

      • AtFree

        public AtFree()
      • AtFree

        public AtFree​(Phi phi)
      • AtFree

        public AtFree​(Attr attr)
      • AtFree

        public AtFree​(Attr attr,
                      boolean used)
    • Method Detail

      • φTerm

        public String φTerm()
        Description copied from interface: Term
        To φ-calculus term, as text.
        Specified by:
        φTerm in interface Term
        Returns:
        The expression in φ-calculus
      • 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