Java Code Examples for jdk.internal.org.objectweb.asm.Opcodes#TABLESWITCH

The following examples show how to use jdk.internal.org.objectweb.asm.Opcodes#TABLESWITCH . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TableSwitchInsnNode.java    From nashorn with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Constructs a new {@link TableSwitchInsnNode}.
 *
 * @param min the minimum key value.
 * @param max the maximum key value.
 * @param dflt beginning of the default handler block.
 * @param labels beginnings of the handler blocks. <tt>labels[i]</tt> is
 *        the beginning of the handler block for the <tt>min + i</tt> key.
 */
public TableSwitchInsnNode(
    final int min,
    final int max,
    final LabelNode dflt,
    final LabelNode... labels)
{
    super(Opcodes.TABLESWITCH);
    this.min = min;
    this.max = max;
    this.dflt = dflt;
    this.labels = new ArrayList<LabelNode>();
    if (labels != null) {
        this.labels.addAll(Arrays.asList(labels));
    }
}
 
Example 2
Source File: TableSwitchInsnNode.java    From dragonwell8_jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Constructs a new {@link TableSwitchInsnNode}.
 *
 * @param min
 *            the minimum key value.
 * @param max
 *            the maximum key value.
 * @param dflt
 *            beginning of the default handler block.
 * @param labels
 *            beginnings of the handler blocks. <tt>labels[i]</tt> is the
 *            beginning of the handler block for the <tt>min + i</tt> key.
 */
public TableSwitchInsnNode(final int min, final int max,
        final LabelNode dflt, final LabelNode... labels) {
    super(Opcodes.TABLESWITCH);
    this.min = min;
    this.max = max;
    this.dflt = dflt;
    this.labels = new ArrayList<LabelNode>();
    if (labels != null) {
        this.labels.addAll(Arrays.asList(labels));
    }
}
 
Example 3
Source File: TableSwitchInsnNode.java    From TencentKona-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Constructs a new {@link TableSwitchInsnNode}.
 *
 * @param min
 *            the minimum key value.
 * @param max
 *            the maximum key value.
 * @param dflt
 *            beginning of the default handler block.
 * @param labels
 *            beginnings of the handler blocks. <tt>labels[i]</tt> is the
 *            beginning of the handler block for the <tt>min + i</tt> key.
 */
public TableSwitchInsnNode(final int min, final int max,
        final LabelNode dflt, final LabelNode... labels) {
    super(Opcodes.TABLESWITCH);
    this.min = min;
    this.max = max;
    this.dflt = dflt;
    this.labels = new ArrayList<LabelNode>();
    if (labels != null) {
        this.labels.addAll(Arrays.asList(labels));
    }
}
 
Example 4
Source File: TableSwitchInsnNode.java    From jdk8u60 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Constructs a new {@link TableSwitchInsnNode}.
 *
 * @param min
 *            the minimum key value.
 * @param max
 *            the maximum key value.
 * @param dflt
 *            beginning of the default handler block.
 * @param labels
 *            beginnings of the handler blocks. <tt>labels[i]</tt> is the
 *            beginning of the handler block for the <tt>min + i</tt> key.
 */
public TableSwitchInsnNode(final int min, final int max,
        final LabelNode dflt, final LabelNode... labels) {
    super(Opcodes.TABLESWITCH);
    this.min = min;
    this.max = max;
    this.dflt = dflt;
    this.labels = new ArrayList<LabelNode>();
    if (labels != null) {
        this.labels.addAll(Arrays.asList(labels));
    }
}
 
Example 5
Source File: TableSwitchInsnNode.java    From openjdk-jdk8u with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Constructs a new {@link TableSwitchInsnNode}.
 *
 * @param min
 *            the minimum key value.
 * @param max
 *            the maximum key value.
 * @param dflt
 *            beginning of the default handler block.
 * @param labels
 *            beginnings of the handler blocks. <tt>labels[i]</tt> is the
 *            beginning of the handler block for the <tt>min + i</tt> key.
 */
public TableSwitchInsnNode(final int min, final int max,
        final LabelNode dflt, final LabelNode... labels) {
    super(Opcodes.TABLESWITCH);
    this.min = min;
    this.max = max;
    this.dflt = dflt;
    this.labels = new ArrayList<LabelNode>();
    if (labels != null) {
        this.labels.addAll(Arrays.asList(labels));
    }
}
 
Example 6
Source File: TableSwitchInsnNode.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Constructs a new {@link TableSwitchInsnNode}.
 *
 * @param min
 *            the minimum key value.
 * @param max
 *            the maximum key value.
 * @param dflt
 *            beginning of the default handler block.
 * @param labels
 *            beginnings of the handler blocks. <tt>labels[i]</tt> is the
 *            beginning of the handler block for the <tt>min + i</tt> key.
 */
public TableSwitchInsnNode(final int min, final int max,
        final LabelNode dflt, final LabelNode... labels) {
    super(Opcodes.TABLESWITCH);
    this.min = min;
    this.max = max;
    this.dflt = dflt;
    this.labels = new ArrayList<LabelNode>();
    if (labels != null) {
        this.labels.addAll(Arrays.asList(labels));
    }
}
 
Example 7
Source File: TableSwitchInsnNode.java    From Bytecoder with Apache License 2.0 3 votes vote down vote up
/**
  * Constructs a new {@link TableSwitchInsnNode}.
  *
  * @param min the minimum key value.
  * @param max the maximum key value.
  * @param dflt beginning of the default handler block.
  * @param labels beginnings of the handler blocks. {@code labels[i]} is the beginning of the
  *     handler block for the {@code min + i} key.
  */
public TableSwitchInsnNode(
        final int min, final int max, final LabelNode dflt, final LabelNode... labels) {
    super(Opcodes.TABLESWITCH);
    this.min = min;
    this.max = max;
    this.dflt = dflt;
    this.labels = Util.asArrayList(labels);
}
 
Example 8
Source File: TableSwitchInsnNode.java    From openjdk-jdk9 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Constructs a new {@link TableSwitchInsnNode}.
 *
 * @param min
 *            the minimum key value.
 * @param max
 *            the maximum key value.
 * @param dflt
 *            beginning of the default handler block.
 * @param labels
 *            beginnings of the handler blocks. <tt>labels[i]</tt> is the
 *            beginning of the handler block for the <tt>min + i</tt> key.
 */
public TableSwitchInsnNode(final int min, final int max,
        final LabelNode dflt, final LabelNode... labels) {
    super(Opcodes.TABLESWITCH);
    this.min = min;
    this.max = max;
    this.dflt = dflt;
    this.labels = new ArrayList<LabelNode>();
    if (labels != null) {
        this.labels.addAll(Arrays.asList(labels));
    }
}
 
Example 9
Source File: TableSwitchInsnNode.java    From jdk8u-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Constructs a new {@link TableSwitchInsnNode}.
 *
 * @param min
 *            the minimum key value.
 * @param max
 *            the maximum key value.
 * @param dflt
 *            beginning of the default handler block.
 * @param labels
 *            beginnings of the handler blocks. <tt>labels[i]</tt> is the
 *            beginning of the handler block for the <tt>min + i</tt> key.
 */
public TableSwitchInsnNode(final int min, final int max,
        final LabelNode dflt, final LabelNode... labels) {
    super(Opcodes.TABLESWITCH);
    this.min = min;
    this.max = max;
    this.dflt = dflt;
    this.labels = new ArrayList<LabelNode>();
    if (labels != null) {
        this.labels.addAll(Arrays.asList(labels));
    }
}
 
Example 10
Source File: TableSwitchInsnNode.java    From hottub with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Constructs a new {@link TableSwitchInsnNode}.
 *
 * @param min
 *            the minimum key value.
 * @param max
 *            the maximum key value.
 * @param dflt
 *            beginning of the default handler block.
 * @param labels
 *            beginnings of the handler blocks. <tt>labels[i]</tt> is the
 *            beginning of the handler block for the <tt>min + i</tt> key.
 */
public TableSwitchInsnNode(final int min, final int max,
        final LabelNode dflt, final LabelNode... labels) {
    super(Opcodes.TABLESWITCH);
    this.min = min;
    this.max = max;
    this.dflt = dflt;
    this.labels = new ArrayList<LabelNode>();
    if (labels != null) {
        this.labels.addAll(Arrays.asList(labels));
    }
}
 
Example 11
Source File: TableSwitchInsnNode.java    From openjdk-8-source with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Constructs a new {@link TableSwitchInsnNode}.
 *
 * @param min
 *            the minimum key value.
 * @param max
 *            the maximum key value.
 * @param dflt
 *            beginning of the default handler block.
 * @param labels
 *            beginnings of the handler blocks. <tt>labels[i]</tt> is the
 *            beginning of the handler block for the <tt>min + i</tt> key.
 */
public TableSwitchInsnNode(final int min, final int max,
        final LabelNode dflt, final LabelNode... labels) {
    super(Opcodes.TABLESWITCH);
    this.min = min;
    this.max = max;
    this.dflt = dflt;
    this.labels = new ArrayList<LabelNode>();
    if (labels != null) {
        this.labels.addAll(Arrays.asList(labels));
    }
}
 
Example 12
Source File: TableSwitchInsnNode.java    From openjdk-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Constructs a new {@link TableSwitchInsnNode}.
 *
 * @param min
 *            the minimum key value.
 * @param max
 *            the maximum key value.
 * @param dflt
 *            beginning of the default handler block.
 * @param labels
 *            beginnings of the handler blocks. <tt>labels[i]</tt> is the
 *            beginning of the handler block for the <tt>min + i</tt> key.
 */
public TableSwitchInsnNode(final int min, final int max,
        final LabelNode dflt, final LabelNode... labels) {
    super(Opcodes.TABLESWITCH);
    this.min = min;
    this.max = max;
    this.dflt = dflt;
    this.labels = new ArrayList<LabelNode>();
    if (labels != null) {
        this.labels.addAll(Arrays.asList(labels));
    }
}
 
Example 13
Source File: TableSwitchInsnNode.java    From jdk8u_jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Constructs a new {@link TableSwitchInsnNode}.
 *
 * @param min
 *            the minimum key value.
 * @param max
 *            the maximum key value.
 * @param dflt
 *            beginning of the default handler block.
 * @param labels
 *            beginnings of the handler blocks. <tt>labels[i]</tt> is the
 *            beginning of the handler block for the <tt>min + i</tt> key.
 */
public TableSwitchInsnNode(final int min, final int max,
        final LabelNode dflt, final LabelNode... labels) {
    super(Opcodes.TABLESWITCH);
    this.min = min;
    this.max = max;
    this.dflt = dflt;
    this.labels = new ArrayList<LabelNode>();
    if (labels != null) {
        this.labels.addAll(Arrays.asList(labels));
    }
}
 
Example 14
Source File: TableSwitchInsnNode.java    From jdk8u-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Constructs a new {@link TableSwitchInsnNode}.
 *
 * @param min
 *            the minimum key value.
 * @param max
 *            the maximum key value.
 * @param dflt
 *            beginning of the default handler block.
 * @param labels
 *            beginnings of the handler blocks. <tt>labels[i]</tt> is the
 *            beginning of the handler block for the <tt>min + i</tt> key.
 */
public TableSwitchInsnNode(final int min, final int max,
        final LabelNode dflt, final LabelNode... labels) {
    super(Opcodes.TABLESWITCH);
    this.min = min;
    this.max = max;
    this.dflt = dflt;
    this.labels = new ArrayList<LabelNode>();
    if (labels != null) {
        this.labels.addAll(Arrays.asList(labels));
    }
}
 
Example 15
Source File: TableSwitchInsnNode.java    From jdk8u-dev-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Constructs a new {@link TableSwitchInsnNode}.
 *
 * @param min
 *            the minimum key value.
 * @param max
 *            the maximum key value.
 * @param dflt
 *            beginning of the default handler block.
 * @param labels
 *            beginnings of the handler blocks. <tt>labels[i]</tt> is the
 *            beginning of the handler block for the <tt>min + i</tt> key.
 */
public TableSwitchInsnNode(final int min, final int max,
        final LabelNode dflt, final LabelNode... labels) {
    super(Opcodes.TABLESWITCH);
    this.min = min;
    this.max = max;
    this.dflt = dflt;
    this.labels = new ArrayList<LabelNode>();
    if (labels != null) {
        this.labels.addAll(Arrays.asList(labels));
    }
}