Package org.eolang

Class PhConst

  • All Implemented Interfaces:
    Phi

    public final class PhConst
    extends Object
    implements Phi
    A const object.
    Since:
    0.16
    • Constructor Detail

      • PhConst

        public PhConst​(Phi phi)
        Ctor.
        Parameters:
        phi - The object
    • Method Detail

      • copy

        public Phi copy()
        Description copied from interface: Phi
        Make a copy.
        Specified by:
        copy in interface Phi
        Returns:
        A copy
      • attr

        public 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 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