- <init>
Constructs a new ClassWriter object and enables optimizations for "mostly add"
bytecode transformati
- getCommonSuperClass
Returns the common super type of the two given types. The default implementation
of this method load
- toByteArray
Returns the bytecode of the class that was build with this class writer.
- addType
Adds the given internal name to #typeTable and returns its index. Does nothing
if the type table alr
- addUninitializedType
Adds the given "uninitialized" type to #typeTable and returns its index. This
method is used for UNI
- get
Returns the constant pool's hash table item which is equal to the given item.
- getMergedType
Returns the index of the common super type of the two given types. This method
calls #getCommonSuper
- newClass
Adds a class reference to the constant pool of the class being build. Does
nothing if the constant p
- newConst
Adds a number or string constant to the constant pool of the class being build.
Does nothing if the
- newConstItem
Adds a number or string constant to the constant pool of the class being build.
Does nothing if the
- newDouble
Adds a double to the constant pool of the class being build. Does nothing if the
constant pool alrea
- newField
Adds a field reference to the constant pool of the class being build. Does
nothing if the constant p