Package org.eolang
Interface Universe
-
- All Known Implementing Classes:
UniverseDefault,UniverseSafe
public interface UniverseClass to manipulate eo objects within "Universe" paradigm.- Since:
- 0.30
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbind(int parent, int child, String att)Binds child to parent.intcopy(int vertex)Copies the eo object.byte[]dataize(int vertex)Dataizes the eo object by vertex and return byte array.intfind(String name)Finds vertex of eo object by its location.voidput(int vertex, byte[] bytes)Puts data to eo object by vertex.
-
-
-
Method Detail
-
find
int find(String name)
Finds vertex of eo object by its location.- Parameters:
name- Relative location of the object to find like "^.^.some-obj".- Returns:
- Vertex of the object to find.
-
put
void put(int vertex, byte[] bytes)Puts data to eo object by vertex.- Parameters:
vertex- Vertex off object.bytes- Data to put.
-
bind
void bind(int parent, int child, String att)Binds child to parent.- Parameters:
parent- Vertex of the parent eo object.child- Vertex of the child eo object.att- Name of attribute.
-
copy
int copy(int vertex)
Copies the eo object.- Parameters:
vertex- Vertex of object to copy.- Returns:
- Vertex of the copy.
-
dataize
byte[] dataize(int vertex)
Dataizes the eo object by vertex and return byte array.- Parameters:
vertex- Vertex of eo-object.- Returns:
- Raw data.
-
-