
/* Generated By:JJTree: Do not edit this line. ASTBlock.java */

public class ASTBlock extends SimpleNode 
{
	/*************************************************
	
					Constructors
		
	*************************************************/
	
	public ASTBlock(int id) 
	{
    	super(id);
  	}

  	public ASTBlock(drawphase2 p, int id) 
  	{
    	super(p, id);
  	}
 
 	/*************************************************
	
	generate method to loop round all the children within
	the block
		
	*************************************************/
  	
  	public void generate()
  	{
    	int i, k = jjtGetNumChildren();

     	for (i = 0; i < k; i++)
        	System.out.println(jjtGetChild(i).generateSVG());
  	}
  	
  	/*************************************************
	
	generateSVG() method to create the SVG code for all
	of the child nodes contained within the block. 
	
	*************************************************/
  
  	public String generateSVG()
  	{
  		int i, k = jjtGetNumChildren();
  		int test;
  		String temp = "";

     	for (i = 0; i < k; i++)
     	{
        	temp = temp + jjtGetChild(i).generateSVG();
        }
        
        return temp;
    }
    
    /*************************************************
	
	Methods needed for Node interface 
	
	*************************************************/
  	
  	public int getBrush()
  	{
  		return 0;
  	}
  	
  	public String getColour()
  	{
  		return null;
  	}
  	
  	public String getParentType()
  	{
  		return null;
  	}
  	
  	public int getOffsetX()
  	{
  		return 0;
  	}
  
  	public int getOffsetY()
	{
  		return 0;
  	}

}
