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 Summary
Constructors Constructor Description DirectivesClassProperties()Constructor.DirectivesClassProperties(int access)Constructor.DirectivesClassProperties(int access, String supername, String... interfaces)Constructor.DirectivesClassProperties(String name)Constructor.DirectivesClassProperties(Format format, int access)Constructor.DirectivesClassProperties(Format format, int version, int access, ClassName name, String supername, String... interfaces)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator<org.xembly.Directive>iterator()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
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.- Suppressed Checkstyle violations:
- ParameterNumberCheck (5 lines)
-
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.- Suppressed Checkstyle violations:
- ParameterNumberCheck (6 lines)
-
-