Package org.eolang
Class PhDefault
- java.lang.Object
-
- org.eolang.PhDefault
-
- Direct Known Subclasses:
Data.Value,EOarray,EOarray$EOeach,EOarray$EOeq,EOarray$EOeq$EOt1$EOt1$EOa2,EOarray$EOget,EOarray$EOis_empty,EOarray$EOlength,EOarray$EOmap,EOarray$EOmap$EOt1$EOa1,EOarray$EOmapi,EOarray$EOmapi$EOt1$EOa2,EOarray$EOreduce,EOarray$EOreduce$EOt2$EOa2,EOarray$EOreducei,EOarray$EOreducei$EOfunc,EOarray$EOreducei$EOfunc$EOt5$EOt2$EOa1,EOarray$EOwith,EOarray$EOwithout,EOarray$EOwithout$EOt1$EOa2,EOas_phi,EObool,EObool$EOand,EObool$EOas_bytes,EObool$EOas_hash,EObool$EOeq,EObool$EOif,EObool$EOnot,EObool$EOor,EObool$EOwhile,EObytes,EObytes$EOand,EObytes$EOas_bool,EObytes$EOas_bytes,EObytes$EOas_float,EObytes$EOas_int,EObytes$EOas_string,EObytes$EOeq,EObytes$EOleft,EObytes$EOnot,EObytes$EOor,EObytes$EOpart,EObytes$EOright,EObytes$EOsize,EObytes$EOxor,EOcage,EOerror,EOfloat,EOfloat$EOabs,EOfloat$EOadd,EOfloat$EOas_bytes,EOfloat$EOas_hash,EOfloat$EOas_int,EOfloat$EOas_string,EOfloat$EOcos,EOfloat$EOdiv,EOfloat$EOeq,EOfloat$EOgeq,EOfloat$EOgreater,EOfloat$EOleq,EOfloat$EOless,EOfloat$EOmul,EOfloat$EOneg,EOfloat$EOneq,EOfloat$EOpow,EOfloat$EOsignum,EOfloat$EOsin,EOfloat$EOsub,EOgoto,EOheap,EOheap$EOfree,EOheap$EOmalloc,EOheap$EOpointer,EOheap$EOpointer$EOadd,EOheap$EOpointer$EOblock,EOheap$EOpointer$EOsub,EOint,EOint$EOabs,EOint$EOadd,EOint$EOand,EOint$EOas_bytes,EOint$EOas_float,EOint$EOas_hash,EOint$EOas_string,EOint$EOdiv,EOint$EOeq,EOint$EOgeq,EOint$EOgreater,EOint$EOleft,EOint$EOleq,EOint$EOless,EOint$EOmod,EOint$EOmod$EOabs_mod,EOint$EOmod$EOcheck_dividend,EOint$EOmod$EOcheck_divisor,EOint$EOmod$EOt5$EOa1,EOint$EOmul,EOint$EOneg,EOint$EOneq,EOint$EOor,EOint$EOpow,EOint$EOpow$EOt1$EOa1,EOint$EOright,EOint$EOsub,EOint$EOxor,EOmemory,EOram,EOram$EOread,EOram$EOwrite,EOrandom,EOregex,EOregex$EOmatch,EOregex$EOmatches,EOseq,EOsprintf,EOstdout,EOstring,EOstring$EOas_bytes,EOstring$EOas_float,EOstring$EOas_hash,EOstring$EOas_int,EOstring$EOas_regex,EOstring$EOeq,EOstring$EOjoined,EOstring$EOlength,EOstring$EOtrim,EOtry
public abstract class PhDefault extends Object implements Phi, Cloneable
A simple object. The class is thread-safe.- Since:
- 0.1
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidadd(String name, Attr attr)Add new attribute.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()voidmove(Phi rho)Move it to a new parent.StringtoString()protected StringtoStringWith(String... lines)Make a string with this additional list of lines.StringφTerm()To φ-calculus term, as text.
-
-
-
Constructor Detail
-
PhDefault
public PhDefault()
Ctor.
-
PhDefault
public PhDefault(Phi sigma)
Ctor.- Parameters:
sigma- Sigma
-
-
Method Detail
-
copy
public final Phi copy()
Description copied from interface:PhiMake a copy, leaving it at the same parent.
-
move
public final void move(Phi rho)
Description copied from interface:PhiMove it to a new parent.
-
attr
public final Attr attr(int pos)
Description copied from interface:PhiGet attribute by position.
-
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 nameattr- The attr
-
-