/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements. See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache license, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the license for the specific language governing permissions and
 * limitations under the license.
 */
package org.apache.log4j.spi;

/**
 The internal representation of caller location information.

 @since 0.8.3
 */
public class LocationInfo implements java.io.Serializable {

    private final StackTraceElement element;

    public String fullInfo;

    public LocationInfo(StackTraceElement element) {
        this.element = element;
    }

    /**
     When location information is not available the constant
     <code>NA</code> is returned. Current value of this string
     constant is <b>?</b>.  */
    public final static String NA = "?";

    static final long serialVersionUID = -1325822038990805636L;


    /**
     Return the fully qualified class name of the caller making the
     logging request.
     */
    public
    String getClassName() {
        return element.getClassName();
    }

    /**
     Return the file name of the caller.
     */
    public
    String getFileName() {
        return element.getFileName();
    }

    /**
     Returns the line number of the caller.
     */
    public
    String getLineNumber() {
        return Integer.toString(element.getLineNumber());
    }

    /**
     Returns the method name of the caller.
     */
    public
    String getMethodName() {
        return element.getMethodName();
    }
}

@@ -829,16 +829,18 @@
 i;%0A%0A/**%0A
+ *
  The int
@@ -892,17 +892,22 @@
 mation.%0A
-%0A
+ * %0A *
  @since 
@@ -1156,16 +1156,18 @@
 /**%0A    
+ *
  When lo
@@ -1214,21 +1214,16 @@
 constant
-%0A    
  %3Ccode%3EN
@@ -1277,16 +1277,18 @@
 ing%0A    
+ *
  constan
@@ -1301,16 +1301,20 @@
 b%3E?%3C/b%3E.
+%0A   
   */%0A   
@@ -1417,17 +1417,16 @@
 5636L;%0A%0A
-%0A
     /**%0A
@@ -1421,32 +1421,34 @@
 L;%0A%0A    /**%0A    
+ *
  Return the full
@@ -1494,21 +1494,16 @@
 king the
-%0A    
  logging
@@ -1522,36 +1522,32 @@
    */%0A    public
-%0A   
  String getClass
@@ -1609,24 +1609,26 @@
     /**%0A    
+ *
  Return the 
@@ -1662,36 +1662,32 @@
    */%0A    public
-%0A   
  String getFileN
@@ -1743,32 +1743,34 @@
  %7D%0A%0A    /**%0A    
+ *
  Returns the lin
@@ -1803,36 +1803,32 @@
    */%0A    public
-%0A   
  String getLineN
@@ -1914,16 +1914,18 @@
 /**%0A    
+ *
  Returns
@@ -1974,20 +1974,16 @@
   public
-%0A   
  String 

Format class.