Class DirectivesAnnotationProperty

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

public final class DirectivesAnnotationProperty extends Object implements Iterable<org.xembly.Directive>, Composite
Annotation property as Xembly directives.
Since:
0.3
  • 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

      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()
      Specified by:
      iterator in interface Iterable<org.xembly.Directive>
    • 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.