Package org.eolang
Class PhCached
- java.lang.Object
-
- org.eolang.PhCached
-
public final class PhCached extends Object implements Phi
Cached Phi.It's highly recommended to use it with
PhComposite.- Since:
- 0.1
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eolang.Data
Data.ToPhi
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Phicopy()Make a copy, leaving it at the same parent.Phicopy(Phi self)Copy self object.byte[]delta()Take the data.Stringforma()Get forma of the phi.booleanhasRho()Returns true if object has bound rho attribute.Stringlocator()Get code locator of the phi.voidput(int pos, Phi object)Put object by position of the attribute.voidput(String name, Phi object)Put object by name of the attribute.Phitake(int pos)Take object by position of the attribute.Phitake(String name)Take object by name of the attribute.
-
-
-
Constructor Detail
-
PhCached
public PhCached(Phi attr)
Ctor.- Parameters:
attr- Origin attribute
-
-
Method Detail
-
copy
public Phi copy()
Description copied from interface:PhiMake a copy, leaving it at the same parent.
-
hasRho
public boolean hasRho()
Description copied from interface:PhiReturns true if object has bound rho attribute.
-
take
public Phi take(String name)
Description copied from interface:PhiTake object by name of the attribute.
-
take
public Phi take(int pos)
Description copied from interface:PhiTake object by position of the attribute.
-
put
public void put(int pos, Phi object)Description copied from interface:PhiPut object by position of the attribute.
-
put
public void put(String name, Phi object)
Description copied from interface:PhiPut object by name of the attribute.
-
-