Class DirectivesDefaultValue
- java.lang.Object
-
- org.eolang.jeo.representation.directives.DirectivesDefaultValue
-
public final class DirectivesDefaultValue extends Object implements Iterable<org.xembly.Directive>, Composite
This class represents a default annotation value.
For example, in the code above, the default value is "nested-default".public @interface NestedAnnotation { String name() default "nested-default"; }- Since:
- 0.3
-
-
Constructor Summary
Constructors Constructor Description DirectivesDefaultValue()Constructor.DirectivesDefaultValue(AtomicReference<Iterable<org.xembly.Directive>> value)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappend(Iterable<org.xembly.Directive> directives)Append directives.Iterable<org.xembly.Directive>build()Build directives all together.booleanisEmpty()Check if the default value is empty.Iterator<org.xembly.Directive>iterator()-
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
-
DirectivesDefaultValue
public DirectivesDefaultValue()
Constructor.
-
DirectivesDefaultValue
public DirectivesDefaultValue(AtomicReference<Iterable<org.xembly.Directive>> value)
Constructor.- Parameters:
value- Default value.
-
-
Method Detail
-
iterator
public Iterator<org.xembly.Directive> iterator()
-
isEmpty
public boolean isEmpty()
Check if the default value is empty.- Returns:
- True if the default value is empty, otherwise false.
-
append
public void append(Iterable<org.xembly.Directive> directives)
Description copied from interface:CompositeAppend directives.
-
-