Class DirectivesAnnotationProperty
java.lang.Object
org.eolang.jeo.representation.directives.DirectivesAnnotationProperty
public final class DirectivesAnnotationProperty
extends Object
implements Iterable<org.xembly.Directive>, Composite
Annotation property as Xembly directives.
- Since:
- 0.3
-
Constructor Summary
ConstructorsConstructorDescriptionDirectivesAnnotationProperty
(org.eolang.jeo.representation.directives.DirectivesAnnotationProperty.Type type, Iterable<org.xembly.Directive>... params) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic DirectivesAnnotationProperty
annotation
(String name, String descriptor, Composite child) Factory method for annotation property.void
Append directives.static DirectivesAnnotationProperty
Factory method for array property.Iterable<org.xembly.Directive>
build()
Build directives all together.static DirectivesAnnotationProperty
Factory method for enum property.Iterator<org.xembly.Directive>
iterator()
static DirectivesAnnotationProperty
Factory method for plain property.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
-
DirectivesAnnotationProperty
@SafeVarargs public DirectivesAnnotationProperty(org.eolang.jeo.representation.directives.DirectivesAnnotationProperty.Type type, Iterable<org.xembly.Directive>... params) Constructor.- Parameters:
type
- Type of the property.params
- Property parameters.
-
-
Method Details
-
plain
Factory method for plain property.- Parameters:
name
- Name.value
- Parameter.- Returns:
- Property directives.
-
enump
Factory method for enum property.- Parameters:
name
- Name.descriptor
- Descriptor.value
- Value.- Returns:
- Property directives.
-
array
Factory method for array property.- Parameters:
name
- Name.child
- Child directives.- Returns:
- Property directives.
-
annotation
public static DirectivesAnnotationProperty annotation(String name, String descriptor, Composite child) Factory method for annotation property.- Parameters:
name
- Name.descriptor
- Descriptor.child
- Child directives.- Returns:
- Property directives.
-
iterator
-
append
Description copied from interface:Composite
Append directives. -
build
Description copied from interface:Composite
Build directives all together.
-