KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > velocity > util > introspection > Info


1 package org.apache.velocity.util.introspection;
2 /*
3  * Copyright 2002,2004 The Apache Software Foundation.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */

17
18 /**
19  * Little class to carry in info such as template name, line and column
20  * for information error reporting from the uberspector implementations
21  *
22  * @author <a HREF="mailto:geirm@optonline.net">Geir Magnusson Jr.</a>
23  * @version $Id: Info.java,v 1.1.4.1 2004/03/03 23:23:08 geirm Exp $
24  */

25 public class Info
26 {
27     private int line;
28     private int column;
29     private String JavaDoc templateName;
30
31     public Info(String JavaDoc tn, int l, int c)
32     {
33         templateName = tn;
34         line = l;
35         column = c;
36     }
37
38     private Info()
39     {
40     }
41
42     public String JavaDoc getTemplateName()
43     {
44         return templateName;
45     }
46
47     public int getLine()
48     {
49         return line;
50     }
51
52     public int getColumn()
53     {
54         return column;
55     }
56 }
57
Popular Tags