Class DirectivesAnnotation

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

public final class DirectivesAnnotation extends Object implements Iterable<org.xembly.Directive>
Directives Annotation. All the directives are sorted according to the JVM Spec: annotation { u2 type_index; {@link DirectivesAnnotation#descriptor} u2 num_element_value_pairs; {@link DirectivesAnnotation#properties.size()} { u2 element_name_index; element_value value; } element_value_pairs[num_element_value_pairs]; {@link DirectivesAnnotation#properties} }
Since:
0.1
  • Constructor Details

    • DirectivesAnnotation

      public DirectivesAnnotation(String descriptor, boolean visible)
      Constructor.
      Parameters:
      descriptor - Descriptor.
      visible - Visible.
    • DirectivesAnnotation

      @SafeVarargs public DirectivesAnnotation(int index, Format format, String descriptor, boolean visible, Iterable<org.xembly.Directive>... props)
      Constructor.
      Parameters:
      index - Index.
      format - Format.
      descriptor - Descriptor.
      visible - Visible.
      props - Properties.
    • DirectivesAnnotation

      public DirectivesAnnotation(int index, Format format, String descriptor, boolean visible, List<Iterable<org.xembly.Directive>> properties)
      Constructor.
      Parameters:
      index - Index.
      format - Format.
      descriptor - Descriptor.
      visible - Visible.
      properties - Properties.
  • Method Details

    • iterator

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