Ejemplo n.º 1
0
 @Override
 public String toString() {
   StringWriter writer = new StringWriter();
   CorePrinter printer = new CorePrinter(writer);
   this.printNode(printer);
   printer.flush();
   printer.close();
   return writer.getBuffer().toString();
 }
Ejemplo n.º 2
0
  public void printNode(CorePrinter output) {
    output.formatPrintLn("continue ");

    Expression expression = this.getExpression();
    if (expression != null) {
      expression.printNode(output);
    }
  }
Ejemplo n.º 3
0
 public void printNode(CorePrinter output) {
   output.formatPrintLn(
       this.fName + "(" + this.getSourceRange().toString() + ")"); // $NON-NLS-1$ //$NON-NLS-2$
 }
Ejemplo n.º 4
0
 /** Testing purposes only. Print expression. */
 public void printNode(CorePrinter output) {
   output.formatPrintLn(
       "Expression" + getSourceRange() + ":" + getKind()); // $NON-NLS-1$ //$NON-NLS-2$
 }
Ejemplo n.º 5
0
 public void printNode(CorePrinter output) {
   output.println(this.getClass() + " (node doesn't support debug printing)"); // $NON-NLS-1$
 }