EDU.purdue.cs.bloat.editor |
Allows classes, methods, and fields to be edited. In addition, the
representation of bytecodes (JVM instructions) is refined. Types,
opcodes, local variables, and special instrcution operands are
introduced.
|
Java Source File Name | Type | Comment |
ClassEditor.java | Class | A ClassEditor provides finer-grain access to a class than a CLassInfo object
does. |
ClassHierarchy.java | Class | ClassHierarchy maintains a graph of the subclass relationships of the classes
loaded by the ClassInfoLoader. |
CodeArray.java | Class | CodeArray converts an array of Instructions into an array of bytes suitable
for saving to a MethodInfo with setCode. |
ConstantPool.java | Class | ConstantPool models constants in the constant pool. |
EditorContext.java | Interface | An EditorContext supplies a means of loading and editing classes.
Note that a number of these methods are identical to methods in
Editor. |
EditorVisitor.java | Interface | EditorVisitor "visits" the "nodes" in a class. |
FieldEditor.java | Class | FieldEditor provides a means to edit a field of a class. |
IncOperand.java | Class | IncOperand encapsulates the operands to the iinc instruction. |
Instruction.java | Class | Instruction represents a single instruction in the JVM. |
InstructionAdapter.java | Class | This adapter provides a default implementation for every method in
InstructionVisitor. |
InstructionVisitor.java | Interface | The visitor pattern allows functionality to be added to a number of classes
(or in this case one class, Instruction, that can vary in
behavior) without modifying the classes themselves. |
Label.java | Class | Label is used to label an instruction. |
LocalVariable.java | Class | LocalVariable represents a local variable index operand to various
instructions. |
MemberRef.java | Class | MemberRef represents a method or field (as a NameAndType) and the
class (as a Type) in which it is declared. |
MethodEditor.java | Class | MethodEditor provides a means to edit a method of a class. |
MultiArrayOperand.java | Class | MultiArrayOperand encapsulates the operands to the
multianewarray instruction. |
NameAndType.java | Class | Methods and fields are described by their name and type descriptor. |
Opcode.java | Interface | Opcode is an interface containing constants defining the opcodes of
instructions and related constants.
- opc_XXX are the opcodes.
- opcx_XXX are the opcode classes.
|
SerialVersionUID.java | Class |
This class computes the serial version UID of a class modeled by a
ClassEditor . |
Switch.java | Class | Switch is used to hold the lookup values and branch targets of a tableswitch
or lookup switch instruction.
The tableswitch low-to-high range of values is represented by storing each
lookup value in the range. |
TryCatch.java | Class | TryCatch holds the labels for the start and end of a protected block and the
beginning of a catch block and the type of the exception to catch. |
Type.java | Class | Type represents a type descriptor in a classes constant pool. |
TypeComparator.java | Class | A TypeComparator orders Types such that a subclass
preceededs its superclass. |
UseMap.java | Class | |