#include <class.hpp>
Inheritance diagram for ClassEncoder::Class:
Public Member Functions | |
Class (const std::string &className="output") | |
Default constructor. | |
~Class () | |
Default destructor. | |
const std::string & | getClassName () const |
void | write () |
Write classfile to disk. | |
method_info * | addMethod (const std::string &name) |
Add a new method to this class. | |
Private Attributes | |
ConstantPool | ConstantPoolEntries |
std::vector< method_info * > | Methods |
std::string | ClassName |
This class represents one class file and thus one java class object. For all classes at least the special function must be declared.
Definition at line 28 of file class.hpp.
|
Default constructor.
|
|
Default destructor. Empty |
|
Add a new method to this class. Adds a new method_info object containing a method to this class.
|
|
Write classfile to disk. Writes this classfile to disk going through all the constant pool and attribute entries.
Definition at line 42 of file class.cpp. References ClassEncoder::ConstantPool::add(), ClassEncoder::ConstantPool::count(), ClassEncoder::ConstantPool::write(), ClassEncoder::ClassWriterBase::writeu2(), and ClassEncoder::ClassWriterBase::writeu4(). |