Class DirectivesTryCatch

  • All Implemented Interfaces:
    Iterable<org.xembly.Directive>

    public final class DirectivesTryCatch
    extends Object
    implements Iterable<org.xembly.Directive>
    Try catch directives.

    All the directives are sorted according to the JVM specification: { u2 start_pc; u2 end_pc; u2 handler_pc; u2 catch_type; } exception_table[exception_table_length];

    Since:
    0.1
    • Constructor Detail

      • DirectivesTryCatch

        public DirectivesTryCatch​(int index,
                                  Format format,
                                  BytecodeLabel start,
                                  BytecodeLabel end,
                                  BytecodeLabel handler,
                                  String type)
        Constructor.
        Parameters:
        index - The index of the try-catch entry in the method.
        format - The format of the directives.
        start - Start label
        end - End label
        handler - Handler label
        type - Exception type
        Suppressed Checkstyle violations:
        ParameterNumberCheck (5 lines)
    • Method Detail

      • iterator

        public Iterator<org.xembly.Directive> iterator()
        Specified by:
        iterator in interface Iterable<org.xembly.Directive>