feat(#112): Save All Class Properties as Separate Object Attributes #127
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Save all java class properties as separate eo attributes.
Closes: #112.
History:
PR-Codex overview
This PR focuses on improving the XML representation of classes in the code.
Detailed summary
XmlClass
class now includes aproperties()
method that retrieves the class properties.XmlClassProperties
class is a new class that represents the properties of a class.XmlBytecode
class now uses theproperties().access()
method instead ofclazz.access()
to retrieve the class access modifiers.BytecodeClass
class has added a TODO comment to implement support for additional class properties.BytecodeRepresentation
class now importsDirectivesClass
instead ofClassDirectives
.XmlData
class now includes aname
field and constructors that accept a name parameter.XmlData.directives()
method now includes thename
attribute in the directives if the name field is not empty.XmlInstruction
class has removed thedecodeHexString()
method and now uses theHexString.decode()
method.XmlClass
class now includes aname()
method that retrieves the class name.XmlClass
class now uses theproperties()
method to retrieve the class name and access modifiers.XmlClass.methods()
method now checks if the node is a method and if it has a base attribute before adding it to the list of methods.ClassDirectivesTest
class has been renamed toDirectivesClassTest
.DirectivesClassTest
class now usesDirectivesClass
instead ofClassDirectives
.XmlClassProperties
class is a new class that represents the properties of a class.Application.xmir
file has been updated with the new XML representation.