Node extends NestedNode implements IParserNode { @Override public String toString() { final StringBuffer buffer = new StringBuffer(); if ( getStringValue() == null ) { buffer.append( getId() ); } else { buffer.append( getStringValue() ); } buffer.append( ' ' ); if ( getChildren() != null ) { for ( final IParserNode child : getChildren() ) { buffer.append( child.toString() ); buffer.append( ' ' ); } } return buffer.toString(); } private  Node( final NodeKind idToBeSet,
                 final int lineToBeSet,
                 final int columnToBeSet ); private  Node( final NodeKind idToBeSet,
                 final int lineToBeSet,
                 final int columnToBeSet,
                 final IParserNode childToBeSet ); private  Node( final NodeKind idToBeSet,
                 final int lineToBeSet,
                 final int columnToBeSet,
                 final String valueToBeSet ); List< IParserNode > findPrimaryStatementsFromNameInChildren( final String[] names ); int getColumn(); int getLine(); String getStringValue(); @Override String toString();  }
@Test public void testToString() throws TokenException { final Node ast = parseFunction( "function set a( value : int ) : void { trace(\"lala\")}" ); assertEquals( "content set mod-list a parameter-list parameter name-type-init " + "value int void block call trace arguments \"lala\" ", ast.toString() ); }