Module org.glavo.classfile
Package org.glavo.classfile.impl
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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.glavo.classfile.impl.AbstractPseudoInstruction
AbstractPseudoInstruction.ExceptionCatchImpl, AbstractPseudoInstruction.UnboundCharacterRange, AbstractPseudoInstruction.UnboundLocalVariable, AbstractPseudoInstruction.UnboundLocalVariableType -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExceptionCatchImpl(Label handler, Label tryStart, Label tryEnd, Optional<ClassEntry> catchTypeEntry) ExceptionCatchImpl(Label handler, Label tryStart, Label tryEnd, ClassEntry catchTypeEntry) -
Method Summary
Modifier and TypeMethodDescriptionReturns the type of the exception to catch, or empty if this handler is unconditional.handler()Returns the handler for the exception.toString()tryEnd()Returns the end of the instruction range for the guarded instructions.tryStart()Returns the beginning of the instruction range for the guarded instructions.voidwriteTo(DirectCodeBuilder writer) Methods inherited from class org.glavo.classfile.impl.AbstractElement
writeTo, writeTo, writeTo
-
Field Details
-
catchTypeEntry
-
handler
-
tryStart
-
tryEnd
-
-
Constructor Details
-
ExceptionCatchImpl
-
ExceptionCatchImpl
public ExceptionCatchImpl(Label handler, Label tryStart, Label tryEnd, Optional<ClassEntry> catchTypeEntry)
-
-
Method Details
-
tryStart
Description copied from interface:ExceptionCatchReturns the beginning of the instruction range for the guarded instructions.- Specified by:
tryStartin interfaceExceptionCatch- Returns:
- the beginning of the instruction range for the guarded instructions
-
handler
Description copied from interface:ExceptionCatchReturns the handler for the exception.- Specified by:
handlerin interfaceExceptionCatch- Returns:
- the handler for the exception
-
tryEnd
Description copied from interface:ExceptionCatchReturns the end of the instruction range for the guarded instructions.- Specified by:
tryEndin interfaceExceptionCatch- Returns:
- the end of the instruction range for the guarded instructions
-
catchType
Description copied from interface:ExceptionCatchReturns the type of the exception to catch, or empty if this handler is unconditional.- Specified by:
catchTypein interfaceExceptionCatch- Returns:
- the type of the exception to catch, or empty if this handler is unconditional
-
writeTo
- Specified by:
writeToin classAbstractPseudoInstruction
-
toString
-