Code example for Stack

Methods: pop, push, size

0
		return builder.toString();
	}  
	 
	public void visit(ASTNode node)
	{ 
		int level = levelStack.size();
		defaultOut(node, level);		
		levelStack.push(o);
		visitChildren(node);
		levelStack.pop();
	} 
	 
	private void defaultOut(ASTNode node, int level)
	{    	 
		 if(node == null)
			 return; 
		  
		 String nodeTypeName = node.getClass().getSimpleName();
		 String output = nodeTypeName + SEPARATOR +
				 node.getLocationString() + SEPARATOR + level;