Package org.eolang
Class Data.ToPhi
- java.lang.Object
-
- org.eolang.Data.ToPhi
-
public static final class Data.ToPhi extends Object implements Phi
Makes aPhiout of a Java object, likeStringorInteger.This is more convenient than making
EOstringand then injecting "Δ" into it. This class is used in Java tests mostly for the sake of brevity. In auto-generated Java code we useEOint/EOstringand then inject "Δ" withData.Valueinto it.- Since:
- 0.1
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Attrattr(int pos)Get attribute by position.Attrattr(String name)Get attribute.Phicopy()Make a copy, leaving it at the same parent.booleanequals(Object obj)inthashCode()Stringlocation()Get code location of the phi.voidmove(Phi rho)Move it to a new parent.StringtoString()StringφTerm()To φ-calculus term, as text.
-
-
-
Constructor Detail
-
ToPhi
public ToPhi(Object obj)
Ctor.- Parameters:
obj- Data
-
-
Method Detail
-
copy
public Phi copy()
Description copied from interface:PhiMake a copy, leaving it at the same parent.
-
location
public String location()
Description copied from interface:PhiGet code location of the phi.
-
-