Class DirectivesMethod
- java.lang.Object
-
- org.eolang.jeo.representation.directives.DirectivesMethod
-
-
Constructor Summary
Constructors Constructor Description DirectivesMethod(String name)
Constructor.DirectivesMethod(String name, boolean counting, DirectivesMethodProperties properties)
Constructor.DirectivesMethod(String name, DirectivesMethodProperties properties)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator<org.xembly.Directive>
iterator()
DirectivesMethod
opcode(int opcode, Object... operands)
Add opcode to the directives.void
operand(Iterable<org.xembly.Directive> directives)
Add operand to the directives.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
DirectivesMethod
public DirectivesMethod(String name)
Constructor.- Parameters:
name
- Method name
-
DirectivesMethod
public DirectivesMethod(String name, DirectivesMethodProperties properties)
Constructor.- Parameters:
name
- Method nameproperties
- Method properties
-
DirectivesMethod
public DirectivesMethod(String name, boolean counting, DirectivesMethodProperties properties)
Constructor.- Parameters:
name
- Method namecounting
- Opcodes countingproperties
- Method properties
-
-
Method Detail
-
opcode
public DirectivesMethod opcode(int opcode, Object... operands)
Add opcode to the directives.- Parameters:
opcode
- Opcodeoperands
- Operands- Returns:
- This object
-
operand
public void operand(Iterable<org.xembly.Directive> directives)
Add operand to the directives.- Parameters:
directives
- Operand directives.
-
-