Class EmitterFactory.FieldInsnEmitter

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String desc  
      private java.lang.String name  
      private int opcode  
      private java.lang.String owner  
    • Constructor Summary

      Constructors 
      Constructor Description
      FieldInsnEmitter​(int opcode, java.lang.String owner, java.lang.String name, java.lang.String desc)
      The opcode must be one of the PUT/GET FIELD/STATIC instructions.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      void evaluate​(org.objectweb.asm.MethodVisitor mv)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.function.Consumer

        andThen
    • Field Detail

      • opcode

        private int opcode
      • owner

        private java.lang.String owner
      • name

        private java.lang.String name
      • desc

        private java.lang.String desc
    • Constructor Detail

      • FieldInsnEmitter

        public FieldInsnEmitter​(int opcode,
                                java.lang.String owner,
                                java.lang.String name,
                                java.lang.String desc)
        The opcode must be one of the PUT/GET FIELD/STATIC instructions.
        Parameters:
        Owner - is the class name containing the field. This is constructed from ASMUtil.bcName( cgen.name() ).
        Name - is the name of the field.
        Desc - is the field's descriptor. This is obtained from the Type.signature() method.
    • Method Detail

      • evaluate

        public void evaluate​(org.objectweb.asm.MethodVisitor mv)
        Specified by:
        evaluate in interface UnaryVoidFunction<org.objectweb.asm.MethodVisitor>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object