Class AbstractPseudoInstruction.ExceptionCatchImpl

java.lang.Object
org.glavo.classfile.impl.AbstractElement
org.glavo.classfile.impl.AbstractPseudoInstruction
org.glavo.classfile.impl.AbstractPseudoInstruction.ExceptionCatchImpl
All Implemented Interfaces:
ClassfileElement, CodeElement, ExceptionCatch, PseudoInstruction
Enclosing class:
AbstractPseudoInstruction

public static final class AbstractPseudoInstruction.ExceptionCatchImpl extends AbstractPseudoInstruction implements ExceptionCatch
  • Field Details

    • catchTypeEntry

      public final ClassEntry catchTypeEntry
    • handler

      public final Label handler
    • tryStart

      public final Label tryStart
    • tryEnd

      public final Label tryEnd
  • Constructor Details

  • Method Details

    • tryStart

      public Label tryStart()
      Description copied from interface: ExceptionCatch
      Returns the beginning of the instruction range for the guarded instructions.
      Specified by:
      tryStart in interface ExceptionCatch
      Returns:
      the beginning of the instruction range for the guarded instructions
    • handler

      public Label handler()
      Description copied from interface: ExceptionCatch
      Returns the handler for the exception.
      Specified by:
      handler in interface ExceptionCatch
      Returns:
      the handler for the exception
    • tryEnd

      public Label tryEnd()
      Description copied from interface: ExceptionCatch
      Returns the end of the instruction range for the guarded instructions.
      Specified by:
      tryEnd in interface ExceptionCatch
      Returns:
      the end of the instruction range for the guarded instructions
    • catchType

      public Optional<ClassEntry> catchType()
      Description copied from interface: ExceptionCatch
      Returns the type of the exception to catch, or empty if this handler is unconditional.
      Specified by:
      catchType in interface ExceptionCatch
      Returns:
      the type of the exception to catch, or empty if this handler is unconditional
    • writeTo

      public void writeTo(DirectCodeBuilder writer)
      Specified by:
      writeTo in class AbstractPseudoInstruction
    • toString

      public String toString()
      Overrides:
      toString in class Object