org.ow2.asmdex.util
Class RegisterShiftClassAdapterExample

java.lang.Object
  extended by org.ow2.asmdex.ClassVisitor
      extended by org.ow2.asmdex.util.RegisterShiftClassAdapter
          extended by org.ow2.asmdex.util.RegisterShiftClassAdapterExample

public class RegisterShiftClassAdapterExample
extends RegisterShiftClassAdapter

Class Adapter used to shift all the registers found in the bytecode. This is an example Class.

Author:
Julien Névo

Field Summary
 
Fields inherited from class org.ow2.asmdex.util.RegisterShiftClassAdapter
className
 
Fields inherited from class org.ow2.asmdex.ClassVisitor
api, cv
 
Constructor Summary
RegisterShiftClassAdapterExample(int api)
          Constructor
 
Method Summary
 MethodVisitor visitMethod(int access, java.lang.String name, java.lang.String desc, java.lang.String[] signature, java.lang.String[] exceptions)
          Visits a method of the class.
 
Methods inherited from class org.ow2.asmdex.util.RegisterShiftClassAdapter
setClassName, setClassVisitor
 
Methods inherited from class org.ow2.asmdex.ClassVisitor
visit, visitAnnotation, visitAttribute, visitEnd, visitField, visitInnerClass, visitOuterClass, visitSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegisterShiftClassAdapterExample

public RegisterShiftClassAdapterExample(int api)
Constructor

Parameters:
api -
Method Detail

visitMethod

public MethodVisitor visitMethod(int access,
                                 java.lang.String name,
                                 java.lang.String desc,
                                 java.lang.String[] signature,
                                 java.lang.String[] exceptions)
Description copied from class: ClassVisitor
Visits a method of the class. This method must return a new MethodVisitor instance (or null) each time it is called, i.e., it should not return a previously returned visitor.

Overrides:
visitMethod in class RegisterShiftClassAdapter
Parameters:
access - the method's access flags (see Opcodes). This parameter also indicates if the method is synthetic.
name - the method's name.
desc - the method's descriptor.
signature - the field's signature. May be null if the field's type does not use generic types.
exceptions - the internal names of the method's exception classes. May be null.
Returns:
an object to visit the byte code of the method, or null if this class visitor is not interested in visiting the code of this method.