Package EDU.purdue.cs.bloat.editor


package 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.

  • Class
    Description
    A ClassEditor provides finer-grain access to a class than a CLassInfo object does.
    ClassHierarchy maintains a graph of the subclass relationships of the classes loaded by the ClassInfoLoader.
    CodeArray converts an array of Instructions into an array of bytes suitable for saving to a MethodInfo with setCode.
    ConstantPool models constants in the constant pool.
    An EditorContext supplies a means of loading and editing classes.
    EditorVisitor "visits" the "nodes" in a class.
    FieldEditor provides a means to edit a field of a class.
    IncOperand encapsulates the operands to the iinc instruction.
    Instruction represents a single instruction in the JVM.
    This adapter provides a default implementation for every method in InstructionVisitor.
    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 is used to label an instruction.
    LocalVariable represents a local variable index operand to various instructions.
    MemberRef represents a method or field (as a NameAndType) and the class (as a Type) in which it is declared.
    MethodEditor provides a means to edit a method of a class.
    MultiArrayOperand encapsulates the operands to the multianewarray instruction.
    Methods and fields are described by their name and type descriptor.
    Opcode is an interface containing constants defining the opcodes of instructions and related constants.
    This class computes the serial version UID of a class modeled by a ClassEditor.
    Switch is used to hold the lookup values and branch targets of a tableswitch or lookup switch instruction.
    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 represents a type descriptor in a classes constant pool.
    A TypeComparator orders Types such that a subclass preceededs its superclass.