Class DirectivesDefaultValue

java.lang.Object
org.eolang.jeo.representation.directives.DirectivesDefaultValue
All Implemented Interfaces:
Iterable<org.xembly.Directive>, Composite

public final class DirectivesDefaultValue extends Object implements Iterable<org.xembly.Directive>, Composite
This class represents a default annotation value.

public @interface NestedAnnotation { String name() default "nested-default"; }

For example, in the code above, the default value is "nested-default".
Since:
0.3
  • Constructor Details

    • DirectivesDefaultValue

      public DirectivesDefaultValue()
      Constructor.
    • DirectivesDefaultValue

      public DirectivesDefaultValue(AtomicReference<Iterable<org.xembly.Directive>> value)
      Constructor.
      Parameters:
      value - Default value.
  • Method Details

    • iterator

      public Iterator<org.xembly.Directive> iterator()
      Specified by:
      iterator in interface Iterable<org.xembly.Directive>
    • 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: Composite
      Append directives.
      Specified by:
      append in interface Composite
      Parameters:
      directives - Directives to append.
    • build

      public Iterable<org.xembly.Directive> build()
      Description copied from interface: Composite
      Build directives all together.
      Specified by:
      build in interface Composite
      Returns:
      Directives.