Package gnu.bytecode

Class Label


  • public class Label
    extends java.lang.Object
    A Label represents a location in a Code attribute.
    • Constructor Summary

      Constructors 
      Constructor Description
      Label()  
      Label​(int position)  
      Label​(CodeAttr code)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void define​(CodeAttr code)
      Define the value of a label as having the current location.
      boolean defined()  
      void defineRaw​(CodeAttr code)
      Define the value of a label as having the current location.
      boolean isUsed()  
      void setTypes​(CodeAttr code)  
      void setTypes​(Label other)  
      • Methods inherited from class java.lang.Object

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

      • Label

        public Label()
      • Label

        public Label​(CodeAttr code)
      • Label

        public Label​(int position)
    • Method Detail

      • defined

        public final boolean defined()
      • isUsed

        public boolean isUsed()
      • setTypes

        public void setTypes​(CodeAttr code)
      • setTypes

        public void setTypes​(Label other)
      • defineRaw

        public void defineRaw​(CodeAttr code)
        Define the value of a label as having the current location.
        Parameters:
        code - the "Code" attribute of the current method
      • define

        public void define​(CodeAttr code)
        Define the value of a label as having the current location.
        Parameters:
        code - the "Code" attribute of the current method