Class DirectivesClassProperties

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

public final class DirectivesClassProperties extends Object implements Iterable<org.xembly.Directive>
Class properties as Xembly directives.

All the class directives are sorted according to JVM specification u2 minor_version; {@link DirectivesClassProperties} u2 major_version; {@link DirectivesClassProperties} u2 constant_pool_count; (incorporated to the directives) cp_info constant_pool[constant_pool_count-1]; (incorporated to the directives) u2 access_flags; {@link DirectivesClassProperties} u2 this_class; {@link DirectivesClassProperties} (class name) u2 super_class; {@link DirectivesClassProperties} u2 interfaces_count; {@link DirectivesClassProperties} u2 interfaces[interfaces_count]; {@link DirectivesClassProperties} You can read more in the official JVM specification.

Since:
0.1.0
  • Constructor Details

    • DirectivesClassProperties

      public DirectivesClassProperties()
      Constructor.
    • DirectivesClassProperties

      public DirectivesClassProperties(Format format, int access)
      Constructor.
      Parameters:
      format - Format of the directives.
      access - Access modifiers.
    • DirectivesClassProperties

      public DirectivesClassProperties(String name)
      Constructor.
      Parameters:
      name - Name of the class.
    • DirectivesClassProperties

      public DirectivesClassProperties(int access)
      Constructor.
      Parameters:
      access - Access modifiers.
    • DirectivesClassProperties

      public DirectivesClassProperties(int access, String supername, String... interfaces)
      Constructor.
      Parameters:
      access - Access modifiers.
      supername - Class supername.
      interfaces - Class interfaces.
    • DirectivesClassProperties

      public DirectivesClassProperties(Format format, int version, int access, ClassName name, String supername, String... interfaces)
      Constructor.
      Parameters:
      format - Format of the directives.
      version - Bytecode version.
      access - Access modifiers.
      name - Class name.
      supername - Class supername.
      interfaces - Class interfaces.
  • Method Details

    • iterator

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