org.sourceforge.jemm.weaver.transformation.bytecode
Class CustomCodeConverter

java.lang.Object
  extended by javassist.CodeConverter
      extended by org.sourceforge.jemm.weaver.transformation.bytecode.CustomCodeConverter

public class CustomCodeConverter
extends javassist.CodeConverter

A special implementation of a JA CodeConvertor that contains specialist methods use by JEMM. Since the CodeConvertor does not support adding custom transforms this represents the transformation chain.

Author:
Paul Keeble

Nested Class Summary
 
Nested classes/interfaces inherited from class javassist.CodeConverter
javassist.CodeConverter.ArrayAccessReplacementMethodNames, javassist.CodeConverter.DefaultArrayAccessReplacementMethodNames
 
Field Summary
 
Fields inherited from class javassist.CodeConverter
transformers
 
Constructor Summary
CustomCodeConverter()
           
 
Method Summary
 void replaceSynchronizedBlocks()
          Replaces the MONITORENTER with calls to jemmOIF.beginLock and MONITOREXIST with jemmOIF.endLock.
 
Methods inherited from class javassist.CodeConverter
doit, insertAfterMethod, insertBeforeMethod, redirectFieldAccess, redirectMethodCall, redirectMethodCall, replaceArrayAccess, replaceFieldRead, replaceFieldWrite, replaceNew
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomCodeConverter

public CustomCodeConverter()
Method Detail

replaceSynchronizedBlocks

public void replaceSynchronizedBlocks()
Replaces the MONITORENTER with calls to jemmOIF.beginLock and MONITOREXIST with jemmOIF.endLock.



Copyright © 2009. All Rights Reserved.