Class DCONST

    • Field Detail

      • value

        private final double value
    • Constructor Detail

      • DCONST

        DCONST()
        Empty constructor needed for Instruction.readInstruction. Not to be used otherwise.
      • DCONST

        public DCONST​(double f)
        Constructs a DCONST instruction.
        Parameters:
        f - the constant value (must be 0.0 or 1.0).
        Throws:
        ClassGenException - if f is not 0.0 or 1.0.
    • Method Detail

      • accept

        public void accept​(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, that is, the most specific visitXXX() call comes last.
        Specified by:
        accept in class Instruction
        Parameters:
        v - Visitor object.