Package org.eolang

Class PhLogged

  • All Implemented Interfaces:
    Phi, Term

    public final class PhLogged
    extends Object
    implements Phi
    An object that reports all manipulations with it to the log (very useful for debugging purposes).

    This class is thread-safe.

    Since:
    0.24
    • Constructor Detail

      • PhLogged

        public PhLogged​(Phi phi)
        Ctor.
        Parameters:
        phi - The origin
    • 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 Phi copy()
        Description copied from interface: Phi
        Make a copy, leaving it at the same parent.
        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
      • locator

        public String locator()
        Description copied from interface: Phi
        Get code locator of the phi.
        Specified by:
        locator in interface Phi
        Returns:
        String containing code locator
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object