Class ReplaceSimpleConstantInstruction


  • public class ReplaceSimpleConstantInstruction
    extends java.lang.Object
    Example showing how to use InstructionSequenceReplacer to replace an `LDC` loading "Hello World" to load the constant "Hallo Wereld" instead.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReplaceSimpleConstantInstruction

        public ReplaceSimpleConstantInstruction()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.ClassNotFoundException,
                                java.lang.NoSuchMethodException,
                                java.lang.reflect.InvocationTargetException,
                                java.lang.IllegalAccessException
        Throws:
        java.lang.ClassNotFoundException
        java.lang.NoSuchMethodException
        java.lang.reflect.InvocationTargetException
        java.lang.IllegalAccessException