Class DirectivesMethod
java.lang.Object
org.eolang.jeo.representation.directives.DirectivesMethod
- All Implemented Interfaces:
Iterable<org.xembly.Directive>
Directives Method.
- Since:
- 0.1
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.DirectivesMethod
(String name) Constructor.DirectivesMethod
(String name, boolean counting, DirectivesMethodProperties properties) Constructor.DirectivesMethod
(String name, DirectivesMethodProperties properties) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionannotation
(DirectivesAnnotation annotation) Add annotation to the directives.Iterator<org.xembly.Directive>
iterator()
void
maxs
(int stack, int locals) Add maxs to the directives.Add opcode to the directives.void
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 Details
-
DirectivesMethod
public DirectivesMethod()Constructor. -
DirectivesMethod
Constructor.- Parameters:
name
- Method name
-
DirectivesMethod
Constructor.- Parameters:
name
- Method nameproperties
- Method properties
-
DirectivesMethod
Constructor.- Parameters:
name
- Method namecounting
- Opcodes countingproperties
- Method properties
-
-
Method Details
-
opcode
Add opcode to the directives.- Parameters:
opcode
- Opcodeoperands
- Operands- Returns:
- This object
-
operand
Add operand to the directives.- Parameters:
directives
- Operand directives.
-
maxs
public void maxs(int stack, int locals) Add maxs to the directives.- Parameters:
stack
- Max stack sizelocals
- Max locals size
-
annotation
Add annotation to the directives.- Parameters:
annotation
- Annotation directives.- Returns:
- This object.
-
iterator
-