View Javadoc

1   /*
2    * This file is part of Pease Plate Template Engine.
3    * 
4    * Pease Plate Template Engine is free software: you can redistribute
5    * it and/or modify it under the terms of the GNU Lesser General 
6    * Public License as published by the Free Software Foundation, 
7    * either version 3 of the License, or any later version.
8    * 
9    * Pease Plate Template Engine is distributed in the hope that it 
10   * will be useful, but WITHOUT ANY WARRANTY; without even the implied
11   * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12   * See the GNU Lesser General Public License for more details.
13   * 
14   * You should have received a copy of the GNU Lesser General Public 
15   * License along with Pease Plate Template Engine. If not, see 
16   * <http://www.gnu.org/licenses/>.
17   * 
18   * Copyright (c) 2008 Manfred HANTSCHEL
19   */
20  package org.peaseplate.internal.lang.command;
21  
22  import org.peaseplate.locator.TemplateLocator;
23  
24  public abstract class AbstractCommand implements ICommand {
25  
26  	private final TemplateLocator locator;
27  	private final int line;
28  	private final int column;
29  	
30  
31  	public AbstractCommand(TemplateLocator locator, int line, int column) {
32  		super();
33  		
34  		this.locator = locator;
35  		this.line = line;
36  		this.column = column;
37  	}
38  
39  	/**
40  	 * @see org.peaseplate.internal.lang.command.ICommand#getLocator()
41  	 */
42  	public TemplateLocator getLocator() {
43      	return locator;
44      }
45  
46  	/**
47  	 * @see org.peaseplate.internal.lang.command.ICommand#getLine()
48  	 */
49  	public int getLine() {
50  		return line;
51  	}
52  
53  	/**
54  	 * @see org.peaseplate.internal.lang.command.ICommand#getColumn()
55  	 */
56  	public int getColumn() {
57  		return column;
58  	}
59  	
60  }