Package org.eolang.ineo.instructions
Class InstDirectives<T>
- java.lang.Object
-
- org.eolang.ineo.instructions.InstDirectives<T>
-
- Type Parameters:
T
- Type of instructions to add
- All Implemented Interfaces:
Iterable<org.xembly.Directive>
,Instructions<T>
public final class InstDirectives<T> extends Object implements Instructions<T>
Instructions with directives.- Since:
- 0.0.1
-
-
Constructor Summary
Constructors Constructor Description InstDirectives()
Ctor.InstDirectives(BiConsumer<org.xembly.Directives,T> func)
Ctor.InstDirectives(org.xembly.Directives directives)
Ctor.InstDirectives(org.xembly.Directives dirs, BiConsumer<org.xembly.Directives,T> func)
Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Instructions<T>
add(T value)
Add node.Iterator<org.xembly.Directive>
iterator()
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
InstDirectives
public InstDirectives()
Ctor.
-
InstDirectives
public InstDirectives(org.xembly.Directives directives)
Ctor.- Parameters:
directives
- Directives
-
InstDirectives
public InstDirectives(BiConsumer<org.xembly.Directives,T> func)
Ctor.- Parameters:
func
- Function for modifying directives
-
InstDirectives
public InstDirectives(org.xembly.Directives dirs, BiConsumer<org.xembly.Directives,T> func)
Ctor.- Parameters:
dirs
- Directivesfunc
- Function for modifying directives
-
-
Method Detail
-
iterator
public Iterator<org.xembly.Directive> iterator()
-
add
public Instructions<T> add(T value)
Description copied from interface:Instructions
Add node.- Specified by:
add
in interfaceInstructions<T>
- Parameters:
value
- Value to add- Returns:
- Self
-
-