Class BytecodeObject
java.lang.Object
org.eolang.jeo.representation.bytecode.BytecodeObject
Bytecode program.
- Since:
- 0.6
-
Constructor Summary
ConstructorsConstructorDescriptionBytecodeObject
(String pckg) Constructor.BytecodeObject
(String pckg, List<BytecodeClass> classes) Constructor.BytecodeObject
(String pckg, BytecodeClass... classes) Constructor.BytecodeObject
(BytecodeClass... classes) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbytecode()
Generate bytecode.directives
(String listing) Convert to directives.replaceTopClass
(BytecodeClass clazz) Copy program with replaced top class.top()
Get top class.com.jcabi.xml.XML
xml()
Converts bytecode into XML.
-
Constructor Details
-
BytecodeObject
Constructor.- Parameters:
pckg
- Package.
-
BytecodeObject
Constructor.- Parameters:
classes
- Classes.
-
BytecodeObject
Constructor.- Parameters:
pckg
- Package.classes
- Classes.
-
BytecodeObject
Constructor.- Parameters:
pckg
- Package.classes
- Classes.
-
-
Method Details
-
xml
public com.jcabi.xml.XML xml()Converts bytecode into XML.- Returns:
- XML representation of bytecode.
-
bytecode
Generate bytecode. Traverse XML and build bytecode class.- Returns:
- Bytecode.
-
top
Get top class.- Returns:
- Top class.
-
replaceTopClass
Copy program with replaced top class.- Parameters:
clazz
- Class to replace.- Returns:
- Program with replaced top class.
-
directives
Convert to directives.- Parameters:
listing
- Program listing.- Returns:
- Directives program.
-