1// Copyright (c) 2016, the R8 project authors. Please see the AUTHORS file
2// for details. All rights reserved. Use of this source code is governed by a
3// BSD-style license that can be found in the LICENSE file.
4
5package com.android.tools.r8.code;
6
7import com.android.tools.r8.ir.conversion.IRBuilder;
8
9public abstract class SwitchPayload extends Nop {
10  SwitchPayload(int high, BytecodeStream stream) {
11    super(high, stream);
12  }
13
14  public SwitchPayload() {
15  }
16
17  public abstract int[] keys();
18  public abstract int numberOfKeys();
19  public abstract int[] switchTargetOffsets();
20
21  @Override
22  public boolean isSwitchPayload() {
23    return true;
24  }
25
26  @Override
27  public void buildIR(IRBuilder builder) {
28    // Switch payloads are not represented in the IR.
29  }
30}
31