Class LocationInfo

  • All Implemented Interfaces:
    java.io.Serializable

    public class LocationInfo
    extends java.lang.Object
    implements java.io.Serializable
    The internal representation of caller location information.
    Since:
    0.8.3
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.StackTraceElement element  
      java.lang.String fullInfo  
      static java.lang.String NA
      When location information is not available the constant NA is returned.
      (package private) static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      LocationInfo​(java.lang.StackTraceElement element)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getClassName()
      Return the fully qualified class name of the caller making the logging request.
      java.lang.String getFileName()
      Return the file name of the caller.
      java.lang.String getLineNumber()
      Returns the line number of the caller.
      java.lang.String getMethodName()
      Returns the method name of the caller.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • element

        private final java.lang.StackTraceElement element
      • fullInfo

        public java.lang.String fullInfo
      • NA

        public static final java.lang.String NA
        When location information is not available the constant NA is returned. Current value of this string constant is ?.
        See Also:
        Constant Field Values
    • Constructor Detail

      • LocationInfo

        public LocationInfo​(java.lang.StackTraceElement element)
    • Method Detail

      • getClassName

        public java.lang.String getClassName()
        Return the fully qualified class name of the caller making the logging request.
      • getFileName

        public java.lang.String getFileName()
        Return the file name of the caller.
      • getLineNumber

        public java.lang.String getLineNumber()
        Returns the line number of the caller.
      • getMethodName

        public java.lang.String getMethodName()
        Returns the method name of the caller.