Class DirectivesClass
- All Implemented Interfaces:
Iterable<org.xembly.Directive>
This class generates Xembly directives to create EO object representations of Java classes, including their properties, fields, methods, annotations, and attributes.
All the class directives are sorted according to JVM specification
ClassFile {
u4 magic; (absent)
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 DirectivesClass} (class name)
u2 super_class; {@link DirectivesClassProperties}
u2 interfaces_count; {@link DirectivesClassProperties}
u2 interfaces[interfaces_count]; {@link DirectivesClassProperties}
u2 fields_count; {@link DirectivesClass}
field_info fields[fields_count]; {@link DirectivesClass}
u2 methods_count; {@link DirectivesClass}
method_info methods[methods_count]; {@link DirectivesClass}
u2 attributes_count; {@link DirectivesClass}
attribute_info attributes[attributes_count]; {@link DirectivesClass}
}
You can read more in the official JVM specification.
- Since:
- 0.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionDirectivesClass(String classname, String signature, DirectivesClassProperties properties) Constructor.DirectivesClass(ClassName name) Constructor.DirectivesClass(ClassName name, DirectivesMethod method) Constructor.DirectivesClass(Format format, ClassName name, DirectivesClassProperties properties, List<DirectivesField> fields, List<DirectivesMethod> methods, String signature, DirectivesAnnotations annotations, DirectivesAttributes attributes) Constructor. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
DirectivesClass
Constructor.- Parameters:
name- The class name
-
DirectivesClass
Constructor.- Parameters:
classname- The class namesignature- The class signatureproperties- The class properties
-
DirectivesClass
Constructor.- Parameters:
name- The class namemethod- The method to include
-
DirectivesClass
public DirectivesClass(Format format, ClassName name, DirectivesClassProperties properties, List<DirectivesField> fields, List<DirectivesMethod> methods, String signature, DirectivesAnnotations annotations, DirectivesAttributes attributes) Constructor.- Parameters:
format- The format of the directivesname- The class nameproperties- The class propertiesfields- The class fieldsmethods- The class methodssignature- The class signatureannotations- The annotationsattributes- The attributes
-
-
Method Details