/*****************************************************
 * 本类库的核心系 AderTemplates
 * (C) Andrew Deren 2004
 * http://www.adersoftware.com
 *****************************************************/

#region Using directives

using System;
using System.Collections.Generic;
using System.Text;

#endregion

namespace JumboTCMS.TEngine.Parser.AST
{
	public class MethodCall : Expression
	{
		string name;
		Expression obj;
		Expression[] args;

		public MethodCall(int line, int col, Expression obj, string name, Expression[] args)
			:base(line, col)
		{
			this.name = name;
			this.args = args;
			this.obj = obj;
		}

		public Expression CallObject
		{
			get { return this.obj; }
		}

		public Expression[] Args
		{
			get { return this.args; }
		}

		public string Name
		{
			get { return this.name; }
		}
	}
}
