Uses of Interface
org.cojen.maker.Label

  • Uses of Label in org.cojen.maker

    Methods in org.cojen.maker that return Label
    Modifier and Type
    Method
    Description
    Label.goto_()
    Generates an unconditional goto statement to this label, which doesn't need to be positioned yet.
    Label.here()
    Sets the position of the label at the location of the next code instruction.
    Label.insert(Runnable body)
    Insert a body of code immediately after this positioned label, and return a new label which is positioned after the end of the inserted code body.
    MethodMaker.label()
    Returns a new label, initially unpositioned.
    Methods in org.cojen.maker with parameters of type Label
    Modifier and Type
    Method
    Description
    void
    MethodMaker.catch_(Label tryStart, Object type, Consumer<Variable> handler)
    Convenience method which defines an exception handler here.
    MethodMaker.catch_(Label tryStart, Label tryEnd, Object type)
    Define an exception handler here, which catches exceptions between the given labels.
    MethodMaker.catch_(Label tryStart, Label tryEnd, Object... types)
    Define an exception handler here, which catches exceptions between the given labels.
    void
    MethodMaker.finally_(Label tryStart, Runnable handler)
    Define a finally handler which is generated for every possible exit path between the start label and here.
    void
    MethodMaker.goto_(Label label)
    Generates an unconditional goto statement to the given label, which doesn't need to be positioned yet.
    void
    Variable.ifEq(Object value, Label label)
    Conditional goto if this variable is equal to another variable or constant.
    void
    Variable.ifFalse(Label label)
    Conditional goto if this variable is false.
    void
    Variable.ifGe(Object value, Label label)
    Conditional goto if this variable is greater than or equal to another variable or constant.
    void
    Variable.ifGt(Object value, Label label)
    Conditional goto if this variable is greater than another variable or constant.
    void
    Variable.ifLe(Object value, Label label)
    Conditional goto if this variable is less than or equal to another variable or constant.
    void
    Variable.ifLt(Object value, Label label)
    Conditional goto if this variable is less than another variable or constant.
    void
    Variable.ifNe(Object value, Label label)
    Conditional goto if this variable is not equal to another variable or constant.
    void
    Variable.ifTrue(Label label)
    Conditional goto if this variable is true.
    void
    Variable.switch_(Label defaultLabel, int[] cases, Label... labels)
    Generates a switch statement against this int or non-null Integer variable.
    void
    Variable.switch_(Label defaultLabel, Enum<?>[] cases, Label... labels)
    Generates a switch statement against this non-null Enum variable.
    void
    Variable.switch_(Label defaultLabel, Object[] cases, Label... labels)
    Generates a switch statement against this non-null variable, of any type.
    void
    Variable.switch_(Label defaultLabel, String[] cases, Label... labels)
    Generates a switch statement against this non-null String variable.