Ejemplo n.º 1
0
  public void dumpExpression(TabbedPrintWriter writer) throws java.io.IOException {
    writer.print("(");
    writer.printType(castType);
    writer.print(") ");
    writer.breakOp();

    /*
     * There are special cases where a cast isn't allowed. We must cast to
     * the common super type before. This cases always give a runtime error,
     * but we want to decompile even bad programs.
     */
    Type superType = castType.getCastHelper(subExpressions[0].getType());
    if (superType != null) {
      writer.print("(");
      writer.printType(superType);
      writer.print(") ");
      writer.breakOp();
    }
    subExpressions[0].dumpExpression(writer, 700);
  }