Class DirectivesAnnotationProperty
java.lang.Object
org.eolang.jeo.representation.directives.DirectivesAnnotationProperty
- All Implemented Interfaces:
Iterable<org.xembly.Directive>
public final class DirectivesAnnotationProperty
extends Object
implements Iterable<org.xembly.Directive>
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, Iterable<org.xembly.Directive> child) Factory method for annotation property.static DirectivesAnnotationProperty
annotation
(String name, String descriptor, List<Iterable<org.xembly.Directive>> properties) Factory method for annotation property.static DirectivesAnnotationProperty
Factory method for array property.static DirectivesAnnotationProperty
array
(String name, Collection<Iterable<org.xembly.Directive>> properties) Factory method for array property.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
- Value.- 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.
-
array
public static DirectivesAnnotationProperty array(String name, Collection<Iterable<org.xembly.Directive>> properties) Factory method for array property.- Parameters:
name
- Name.properties
- Child directives.- Returns:
- Property directives.
-
annotation
public static DirectivesAnnotationProperty annotation(String name, String descriptor, Iterable<org.xembly.Directive> child) Factory method for annotation property.- Parameters:
name
- Name.descriptor
- Descriptor.child
- Child directives.- Returns:
- Property directives.
-
annotation
public static DirectivesAnnotationProperty annotation(String name, String descriptor, List<Iterable<org.xembly.Directive>> properties) Factory method for annotation property.- Parameters:
name
- Name.descriptor
- Descriptor.properties
- Child directives.- Returns:
- Property directives.
-
iterator
-