Package org.eolang

Class PhDefault

    • Constructor Detail

      • PhDefault

        public PhDefault()
        Ctor.
      • PhDefault

        public PhDefault​(Phi prnt)
        Ctor.
        Parameters:
        prnt - Parent
    • Method Detail

      • copy

        public final Phi copy()
        Description copied from interface: Phi
        Make a copy.
        Specified by:
        copy in interface Phi
        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
      • add

        protected final void add​(String name,
                                 Attr attr)
        Add new attribute. This method can only be called from child classes, in their constructors, when the declare their attributes. This is why it's protected. Not the brightest design, I admit.
        Parameters:
        name - The name
        attr - The attr