Class BlockIfGoto


public class BlockIfGoto extends BlockGraph
Block representing an if () goto control flow possible multiple incoming edges 1 output edge if the condition is false 1 (implied) output edge representing the unstructured control flow if the condition is true 1 block evaluating the condition
  • Constructor Details

    • BlockIfGoto

      public BlockIfGoto()
  • Method Details

    • setGotoTarget

      public void setGotoTarget(PcodeBlock bl)
    • getGotoTarget

      public PcodeBlock getGotoTarget()
    • getGotoType

      public int getGotoType()
    • encodeBody

      protected void encodeBody(Encoder encoder) throws IOException
      Description copied from class: PcodeBlock
      Encode information about the block to stream, other than header and edge info
      Overrides:
      encodeBody in class BlockGraph
      Parameters:
      encoder - is the stream encoder
      Throws:
      IOException - for errors writing to the underlying stream
    • decodeBody

      protected void decodeBody(Decoder decoder, BlockMap resolver) throws DecoderException
      Description copied from class: PcodeBlock
      Restore the any additional information beyond header and edges from stream
      Overrides:
      decodeBody in class BlockGraph
      Parameters:
      decoder - is the stream decoder
      resolver - is for looking up edge references
      Throws:
      DecoderException - for invalid encoding