Exemplo n.º 1
0
  private void checkExtractBadOperation(int expected) {
    if (!isInitialized) throw wrapper.extractNotInitialized();

    int tc = realType().kind().value();
    if (tc != expected) {
      String tcName = getTCKindName(tc);
      String expectedName = getTCKindName(expected);
      throw wrapper.extractWrongType(expectedName, tcName);
    }
  }