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

public class ASTInt extends SimpleNode 
{
	int val;
	
	/*************************************************
	
						Constructors
		
	*************************************************/

  	public ASTInt(int id) 
  	{
    	super(id);
  	}

  	public ASTInt(drawphase2 p, int id) 
  	{
    	super(p, id);
  	}
  	
  	/*************************************************
	
	toString() to override generic toString() and put ouput
	in correct format
		
	*************************************************/
  
  	public String toString() 
  	{
    	return "Int: " + val;
  	}
  	
  	/*************************************************
	
	Methods required by Node interface
		
	*************************************************/
  
  	public int getBrush()
  	{
  		return 0;
  	}
  	
  	public String getColour()
  	{
  		return null;
  	}
  	
  	/*************************************************
	
	Returns node type for distinction between Int and Literal
		
	*************************************************/
  	
  	public String getParentType()
  	{
  		String type = "int";
  		
  		return type;
  	}
  	
  	public int getOffsetX()
  	{
  		return 0;
  	}
  
  	public int getOffsetY()
	{
  		return 0;
  	}

}
