Package org.eolang
Class Universe
- java.lang.Object
-
- org.eolang.Universe
-
public class Universe extends Object
Class to manipulate eo objects within "Universe" paradigm.- Since:
- 0.30
-
-
Method Summary
All Methods Instance Methods Concrete 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
public 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
public void put(int vertex, byte[] bytes)Puts data to eo object by vertex.- Parameters:
vertex- Vertex off object.bytes- Data to put.
-
bind
public 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
public int copy(int vertex)
Copies the eo object.- Parameters:
vertex- Vertex of object to copy.- Returns:
- Vertex of the copy.
-
dataize
public byte[] dataize(int vertex)
Dataizes the eo object by vertex and return byte array.- Parameters:
vertex- Vertex of eo-object.- Returns:
- Raw data.
-
-