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 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 - Value.
      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, Iterable<org.xembly.Directive> child)
      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

      public Iterator<org.xembly.Directive> iterator()
      Specified by:
      iterator in interface Iterable<org.xembly.Directive>