com.joanju.cg.bytecode
Class BytecodeUtils

java.lang.Object
  extended by com.joanju.cg.bytecode.BytecodeUtils

public class BytecodeUtils
extends java.lang.Object

Static methods for working with Bytecode instructions from the database.


Constructor Summary
BytecodeUtils()
           
 
Method Summary
static int containingProcedureAddress(int cuid, int address)
          Given an instruction address, get the address of the procedure it is in.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BytecodeUtils

public BytecodeUtils()
Method Detail

containingProcedureAddress

public static int containingProcedureAddress(int cuid,
                                             int address)
                                      throws java.sql.SQLException,
                                             java.io.IOException
Given an instruction address, get the address of the procedure it is in. For various kinds of reporting, we sometimes want to know what procedure a given instruction belongs to. This takes care of dealing with wrinkles in the bytecode layout, like the fact that triggers are given address segments similar to procedure block segments.

Throws:
java.sql.SQLException
java.io.IOException


Copyright © 2008 Joanju Software. All Rights Reserved.