Class NewTriggerAdapter


  • public class NewTriggerAdapter
    extends RuleTriggerAdapter
    asm Adapter class used to add a rule event trigger call to a method of som egiven class
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      private class  NewTriggerAdapter.NewTriggerConstructorAdapter
      a method visitor used to add a rule event trigger call to a constructor -- this has to make sure the super constructor has been called before allowing a trigger call to be compiled
      private class  NewTriggerAdapter.NewTriggerMethodAdapter
      a method visitor used to add a rule event trigger call to a method
    • Constructor Summary

      Constructors 
      Constructor Description
      NewTriggerAdapter​(org.objectweb.asm.ClassVisitor cv, TransformContext transformContext, java.lang.String typeName, int count, boolean whenComplete)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.objectweb.asm.MethodVisitor visitMethod​(int access, java.lang.String name, java.lang.String desc, java.lang.String signature, java.lang.String[] exceptions)  
      • Methods inherited from class org.objectweb.asm.ClassVisitor

        visitAnnotation, visitAttribute, visitEnd, visitField, visitInnerClass, visitModule, visitNestHost, visitNestMember, visitOuterClass, visitPermittedSubclass, visitRecordComponent, visitSource, visitTypeAnnotation
      • Methods inherited from class java.lang.Object

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

      • typeName

        protected java.lang.String typeName
      • count

        protected int count
      • whenComplete

        protected boolean whenComplete
    • Constructor Detail

      • NewTriggerAdapter

        public NewTriggerAdapter​(org.objectweb.asm.ClassVisitor cv,
                                 TransformContext transformContext,
                                 java.lang.String typeName,
                                 int count,
                                 boolean whenComplete)
    • Method Detail

      • visitMethod

        public org.objectweb.asm.MethodVisitor visitMethod​(int access,
                                                           java.lang.String name,
                                                           java.lang.String desc,
                                                           java.lang.String signature,
                                                           java.lang.String[] exceptions)
        Overrides:
        visitMethod in class org.objectweb.asm.ClassVisitor