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
ConstructorsConstructorDescriptionDirectivesMethod
(String name) Constructor.DirectivesMethod
(String name, DirectivesMethodProperties properties) Constructor.DirectivesMethod
(NumberedName name, DirectivesMethodProperties properties, List<Iterable<org.xembly.Directive>> instructions, List<Iterable<org.xembly.Directive>> exceptions, DirectivesAnnotations annotations, List<Iterable<org.xembly.Directive>> dvalue, DirectivesAttributes attributes) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionIterator<org.xembly.Directive>
iterator()
withAnnotation
(DirectivesAnnotation annotation) Add annotation to the directives.withOpcode
(int opcode, Object... operands) Add opcode 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
Constructor.- Parameters:
name
- Method name
-
DirectivesMethod
Constructor.- Parameters:
name
- Method nameproperties
- Method properties
-
DirectivesMethod
public DirectivesMethod(NumberedName name, DirectivesMethodProperties properties, List<Iterable<org.xembly.Directive>> instructions, List<Iterable<org.xembly.Directive>> exceptions, DirectivesAnnotations annotations, List<Iterable<org.xembly.Directive>> dvalue, DirectivesAttributes attributes) Constructor.- Parameters:
name
- Method nameproperties
- Method propertiesinstructions
- Method instructionsexceptions
- Method exceptionsannotations
- Method annotationsdvalue
- Annotation default valueattributes
- Method attributes
-
-
Method Details
-
withOpcode
Add opcode to the directives.- Parameters:
opcode
- Opcodeoperands
- Operands- Returns:
- This object
-
withAnnotation
Add annotation to the directives.- Parameters:
annotation
- Annotation directives.- Returns:
- This object.
-
iterator
-