Class NullnessConversationInstruction

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, org.apache.bcel.generic.StackConsumer, org.apache.bcel.generic.StackProducer, org.apache.bcel.generic.TypedInstruction
    Direct Known Subclasses:
    NONNULL2Z, NULL2Z

    public abstract class NullnessConversationInstruction
    extends org.apache.bcel.generic.ConversionInstruction
    A synthetic instruction that converts a the nullness of a reference to a boolean value.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class org.apache.bcel.generic.Instruction

        length, opcode
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(org.apache.bcel.generic.Visitor v)
      Call corresponding visitor method(s).
      int consumeStack​(org.apache.bcel.generic.ConstantPoolGen cpg)  
      org.apache.bcel.generic.Type getType​(org.apache.bcel.generic.ConstantPoolGen cp)  
      int hashCode()  
      int produceStack​(org.apache.bcel.generic.ConstantPoolGen cpg)  
      • Methods inherited from class org.apache.bcel.generic.Instruction

        copy, dump, equals, getComparator, getLength, getName, getOpcode, initFromFile, readInstruction, setComparator, toString, toString, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • NullnessConversationInstruction

        protected NullnessConversationInstruction​(short opcode)
    • Method Detail

      • getType

        public org.apache.bcel.generic.Type getType​(org.apache.bcel.generic.ConstantPoolGen cp)
        Specified by:
        getType in interface org.apache.bcel.generic.TypedInstruction
        Overrides:
        getType in class org.apache.bcel.generic.ConversionInstruction
      • consumeStack

        public int consumeStack​(org.apache.bcel.generic.ConstantPoolGen cpg)
        Specified by:
        consumeStack in interface org.apache.bcel.generic.StackConsumer
        Overrides:
        consumeStack in class org.apache.bcel.generic.Instruction
      • produceStack

        public int produceStack​(org.apache.bcel.generic.ConstantPoolGen cpg)
        Specified by:
        produceStack in interface org.apache.bcel.generic.StackProducer
        Overrides:
        produceStack in class org.apache.bcel.generic.Instruction
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class org.apache.bcel.generic.Instruction
      • accept

        public void accept​(org.apache.bcel.generic.Visitor v)
        Call corresponding visitor method(s). The order is: Call visitor methods of implemented interfaces first, then call methods according to the class hierarchy in descending order, i.e., the most specific visitXXX() call comes last.
        Specified by:
        accept in class org.apache.bcel.generic.Instruction
        Parameters:
        v - Visitor object