1   
2   
3   
4   
5   
6   
7   
8   
9   
10  
11  
12  
13  
14  
15  
16  package org.apache.commons.jexl.util.introspection;
17  
18  /***
19   * Little class to carry in info such as template name, line and column for
20   * information error reporting from the uberspector implementations
21   * 
22   * Taken from velocity for self-sufficiency.
23   * 
24   * @since 1.0
25   * @author <a href="mailto:geirm@optonline.net">Geir Magnusson Jr.</a>
26   * @version $Id: Info.java 398463 2006-04-30 23:48:42Z dion $
27   */
28  public class Info {
29      /*** line number. */
30      private int line;
31      /*** column number. */
32      private int column;
33      /*** name. */
34      private String templateName;
35      /*** 
36       * Create info.
37       * @param tn template name
38       * @param l line number
39       * @param c column
40       */
41      public Info(String tn, int l, int c) {
42          templateName = tn;
43          line = l;
44          column = c;
45      }
46  
47      /***
48       * Gets the template name.
49       * @return template name
50       */
51      public String getTemplateName() {
52          return templateName;
53      }
54  
55      /***
56       * Gets the line number.
57       * @return line number.
58       */
59      public int getLine() {
60          return line;
61      }
62  
63      /***
64       * Gets the column number.
65       * @return the column.
66       */
67      public int getColumn() {
68          return column;
69      }
70  }