| %line | %branch | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| org.apache.commons.jexl.util.introspection.Info |
|
|
| 1 | /* |
|
| 2 | * Copyright 2002-2006 The Apache Software Foundation. |
|
| 3 | * |
|
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
|
| 5 | * you may not use this file except in compliance with the License. |
|
| 6 | * You may obtain a copy of the License at |
|
| 7 | * |
|
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
|
| 9 | * |
|
| 10 | * Unless required by applicable law or agreed to in writing, software |
|
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
|
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
| 13 | * See the License for the specific language governing permissions and |
|
| 14 | * limitations under the License. |
|
| 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 | 11 | public Info(String tn, int l, class="keyword">int c) { |
| 42 | 11 | templateName = tn; |
| 43 | 11 | line = l; |
| 44 | 11 | column = c; |
| 45 | 11 | } |
| 46 | ||
| 47 | /** |
|
| 48 | * Gets the template name. |
|
| 49 | * @return template name |
|
| 50 | */ |
|
| 51 | public String getTemplateName() { |
|
| 52 | 2 | return templateName; |
| 53 | } |
|
| 54 | ||
| 55 | /** |
|
| 56 | * Gets the line number. |
|
| 57 | * @return line number. |
|
| 58 | */ |
|
| 59 | public int getLine() { |
|
| 60 | 2 | return line; |
| 61 | } |
|
| 62 | ||
| 63 | /** |
|
| 64 | * Gets the column number. |
|
| 65 | * @return the column. |
|
| 66 | */ |
|
| 67 | public int getColumn() { |
|
| 68 | 2 | return column; |
| 69 | } |
|
| 70 | } |
| This report is generated by jcoverage, Maven and Maven JCoverage Plugin. |