Package org.eolang
Class PhTraced
- java.lang.Object
-
- org.eolang.PhTraced
-
public final class PhTraced extends Object implements Phi
Class to trace if the "cage.new" got into recursion during the dataization.This class is thread safe in the meaning that different threads can safely use different instances of the class and recursion (If a thread dataizes the same recursively) will still be detected.
- Since:
- 0.36
-
-
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 void
attach(byte[] data)
Attach data to the object.Phi
copy()
Make a copy, leaving it at the same parent.byte[]
delta()
Take the data.boolean
equals(Object obj)
String
forma()
Get forma of the phi.int
hashCode()
String
locator()
Get code locator of the phi.boolean
put(int pos, Phi obj)
Put object by position of the attribute.boolean
put(String name, Phi obj)
Put object by name of the attribute.Phi
take(String name)
Take object by name of the attribute.String
φTerm()
To φ-calculus term, as text.
-
-
-
Field Detail
-
RECURSION_LIMIT
public static final String RECURSION_LIMIT
Name of property that responsible for keeping max depth.- See Also:
- Constant Field Values
-
-
Method Detail
-
copy
public Phi copy()
Description copied from interface:Phi
Make a copy, leaving it at the same parent.
-
take
public Phi take(String name)
Description copied from interface:Phi
Take object by name of the attribute.
-
put
public boolean put(int pos, Phi obj)
Description copied from interface:Phi
Put object by position of the attribute.
-
put
public boolean put(String name, Phi obj)
Description copied from interface:Phi
Put object by name of the attribute.
-
attach
public void attach(byte[] data)
Description copied from interface:Data
Attach data to the object.
-
-