org.multijava.util.classfile
Class HandleCreator
java.lang.Object
org.multijava.util.classfile.HandleCreator
- All Implemented Interfaces:
- AccessorTransformer
- class HandleCreator
- extends Object
- implements AccessorTransformer
This class replaces all references to instructions by their associated handle.
At the same time, it adds line numbers to the handles and checks if they
are references by an instruction, handler or local variable info.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
locator
private final ArrayLocator locator
handles
private final InstructionHandle[] handles
HandleCreator
public HandleCreator(Instruction[] insns,
InstructionHandle[] handles)
- Creates a new HandleCreator object
- Parameters:
insns - the array of instructionshandles - the array of instruction handles
transform
public InstructionAccessor transform(InstructionAccessor accessor,
AccessorContainer container)
throws BadAccessorException
- Transforms the specified accessor.
- Specified by:
transform in interface AccessorTransformer
- Parameters:
accessor - the accessor to transformcontainer - the object which contains the accessor
- Returns:
- the transformed accessor
- Throws:
BadAccessorException
mjc is Copyright (C) 2000-2004 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. mjc is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.