Class MethodInjector.Transformer.SyntheticMethod

java.lang.Object
com.infradna.tool.bridge_method_injector.MethodInjector.Transformer.SyntheticMethod
Enclosing class:
MethodInjector.Transformer

class MethodInjector.Transformer.SyntheticMethod extends Object
  • Field Details

    • access

      final int access
    • name

      final String name
    • desc

      final String desc
    • originalSignature

      final String originalSignature
    • exceptions

      final String[] exceptions
    • castRequired

      final boolean castRequired
    • adapterMethod

      final String adapterMethod
    • returnType

      final org.objectweb.asm.Type returnType
      Return type of the bridge method to be inserted.
    • originalReturnType

      final org.objectweb.asm.Type originalReturnType
      Return type of the declared method written in the source code.
  • Constructor Details

    • SyntheticMethod

      SyntheticMethod(int access, String name, String desc, String originalSignature, String[] exceptions, org.objectweb.asm.Type returnType, boolean castRequired, String adapterMethod)
  • Method Details

    • inject

      public void inject(org.objectweb.asm.ClassVisitor cv)
      Injects a synthetic method and send it to cv.
    • hasAdapterMethod

      private boolean hasAdapterMethod()
    • insertAdapterMethod

      private void insertAdapterMethod(org.objectweb.asm.commons.GeneratorAdapter ga)