AccessMethodConstraint constraint = new AccessMethodConstraint(cpoolgen, verbose);
String pattern = "ALOAD GETFIELD INVOKESTATIC+";
InstructionList list = gmethod.getInstructionList();
InstructionFinder finder = new InstructionFinder(list);
for (Iterator i = finder.search(pattern, constraint); i.hasNext(); ) {
InstructionHandle[] match = (InstructionHandle[])i.next();
if (match.length > 3) throw new CantInstrumentException(
"Can't instrument multiply nested triggers.");
INVOKESTATIC is = (INVOKESTATIC)(match[match.length-1].getInstruction());
String accessMethodName = is.getMethodName(cpoolgen);