Package org.eolang
Class PhDefault
- java.lang.Object
-
- org.eolang.PhDefault
-
- Direct Known Subclasses:
Data.Value
,EOarray
,EOarray$EOappend
,EOarray$EOeach
,EOarray$EOget
,EOarray$EOis_empty
,EOarray$EOlength
,EOarray$EOmap
,EOarray$EOmap$EOt1$EOa1
,EOarray$EOmapi
,EOarray$EOreduce
,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_char
,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
,EOchar
,EOchar$EOas_bytes
,EOchar$EOas_hash
,EOchar$EOas_string
,EOchar$EOeq
,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$EOmul
,EOint$EOneg
,EOint$EOneq
,EOint$EOor
,EOint$EOpow
,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$EOchar_at
,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 void
add(String name, Attr attr)
Add new attribute.Attr
attr(int pos)
Get attribute by position.Attr
attr(String name)
Get attribute.Phi
copy()
Make a copy, leaving it at the same parent.boolean
equals(Object obj)
int
hashCode()
void
move(Phi rho)
Move it to a new parent.String
toString()
protected String
toStringWith(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:Phi
Make a copy, leaving it at the same parent.
-
move
public final void move(Phi rho)
Description copied from interface:Phi
Move it to a new parent.
-
attr
public final Attr attr(int pos)
Description copied from interface:Phi
Get 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
-
-