Package org.eolang

Class PhOnce

  • All Implemented Interfaces:
    Phi
    Direct Known Subclasses:
    Data.ToPhi, PhCopy, PhWith

    public class PhOnce
    extends Object
    implements Phi
    An object wrapping another one.
    Since:
    0.1
    • Constructor Detail

      • PhOnce

        public PhOnce​(Data<Phi> data,
                      Supplier<String> blank)
        Ctor.
        Parameters:
        data - The object
        blank - The string value
    • Method Detail

      • copy

        public final Phi copy​(Phi rho)
        Description copied from interface: Phi
        Make a copy, attaching it to a new parent.
        Specified by:
        copy in interface Phi
        Parameters:
        rho - New \rho to attach to
        Returns:
        A copy
      • attr

        public final Attr attr​(int pos)
        Description copied from interface: Phi
        Get attribute by position.
        Specified by:
        attr in interface Phi
        Parameters:
        pos - The position of the attribute
        Returns:
        The attr
      • attr

        public final Attr attr​(String name)
        Description copied from interface: Phi
        Get attribute.
        Specified by:
        attr in interface Phi
        Parameters:
        name - The name of the attribute
        Returns:
        The attr