Class DirectivesAnnotationProperty
- java.lang.Object
-
- org.eolang.jeo.representation.directives.DirectivesAnnotationProperty
-
-
Constructor Summary
Constructors Constructor Description DirectivesAnnotationProperty(org.eolang.jeo.representation.directives.DirectivesAnnotationProperty.Type type, Iterable<org.xembly.Directive>... params)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DirectivesAnnotationProperty
annotation(String name, String descriptor, Composite child)
Factory method for annotation property.void
append(Iterable<org.xembly.Directive> directives)
Append directives.static DirectivesAnnotationProperty
array(String name, Composite child)
Factory method for array property.Iterable<org.xembly.Directive>
build()
Build directives all together.static DirectivesAnnotationProperty
enump(String name, String descriptor, String value)
Factory method for enum property.Iterator<org.xembly.Directive>
iterator()
static DirectivesAnnotationProperty
plain(String name, Object value)
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 Detail
-
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 Detail
-
plain
public static DirectivesAnnotationProperty plain(String name, Object value)
Factory method for plain property.- Parameters:
name
- Name.value
- Parameter.- Returns:
- Property directives.
-
enump
public static DirectivesAnnotationProperty enump(String name, String descriptor, String value)
Factory method for enum property.- Parameters:
name
- Name.descriptor
- Descriptor.value
- Value.- Returns:
- Property directives.
-
array
public static DirectivesAnnotationProperty array(String name, Composite child)
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
public Iterator<org.xembly.Directive> iterator()
-
append
public void append(Iterable<org.xembly.Directive> directives)
Description copied from interface:Composite
Append directives.
-
-