Class DirectivesClass
java.lang.Object
org.eolang.jeo.representation.directives.DirectivesClass
- All Implemented Interfaces:
Iterable<org.xembly.Directive>
Directives Class.
- Since:
- 0.1
-
Constructor Summary
ConstructorsConstructorDescriptionDirectivesClass
(String classname) Constructor.DirectivesClass
(String classname, DirectivesClassProperties properties) Constructor.DirectivesClass
(ClassName name) Constructor.DirectivesClass
(ClassName name, DirectivesClassProperties properties) Constructor.DirectivesClass
(ClassName name, DirectivesClassProperties properties, List<DirectivesMethod> methods, List<DirectivesField> fields) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionannotation
(DirectivesAnnotation annotation) Add annotation to the directives.attribute
(DirectivesAttribute attribute) Add attribute to the directives.field
(DirectivesField field) Add field to the directives.Iterator<org.xembly.Directive>
iterator()
method
(DirectivesMethod method) Add method 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
-
DirectivesClass
Constructor.- Parameters:
classname
- Class name.
-
DirectivesClass
Constructor.- Parameters:
name
- Class name
-
DirectivesClass
Constructor.- Parameters:
classname
- Class name.properties
- Class properties.
-
DirectivesClass
Constructor.- Parameters:
name
- Class nameproperties
- Class properties
-
DirectivesClass
public DirectivesClass(ClassName name, DirectivesClassProperties properties, List<DirectivesMethod> methods, List<DirectivesField> fields) Constructor.- Parameters:
name
- Class nameproperties
- Class propertiesmethods
- Class methodsfields
- Class fields
-
-
Method Details
-
field
Add field to the directives.- Parameters:
field
- Field- Returns:
- The same instance of
DirectivesClass
.
-
method
Add method to the directives.- Parameters:
method
- Method- Returns:
- The same instance of
DirectivesClass
.
-
annotation
Add annotation to the directives.- Parameters:
annotation
- Annotation- Returns:
- The same instance of
DirectivesClass
.
-
attribute
Add attribute to the directives.- Parameters:
attribute
- Attribute- Returns:
- The same instance of
DirectivesClass
.
-
iterator
-