Пример #1
0
  public void member_print(PrintWriter ps, String prefix) {
    /* only print members that are not interfaces */

    if (type_spec.typeSpec() instanceof ConstrTypeSpec
            && !(((ConstrTypeSpec) type_spec.typeSpec()).c_type_spec.declaration()
                instanceof Interface)
        || type_spec.typeSpec() instanceof SequenceType
        || type_spec.typeSpec() instanceof ArrayTypeSpec) {
      type_spec.print(ps);
    }

    if (type_spec.typeSpec() instanceof StringType)
      ps.print(prefix + type_spec.toString() + " " + declarator.toString() + " = \"\";");
    else ps.print(prefix + type_spec.toString() + " " + declarator.toString() + ";");
  }