org.asyrinx.brownie.core.lang
クラス InvocationInfo

java.lang.Object
  拡張org.asyrinx.brownie.core.lang.InvocationInfo
すべての実装インタフェース:
java.io.Serializable

public class InvocationInfo
extends java.lang.Object
implements java.io.Serializable

作成者:
akima
関連項目:
直列化された形式

フィールドの概要
(パッケージプライベート)  java.lang.String className
          Caller's fully qualified class name.
(パッケージプライベート)  java.lang.String fileName
          Caller's file name.
 java.lang.String fullInfo
          All available caller information, in the format fully.qualified.classname.of.caller.methodName(Filename.java:line)
(パッケージプライベート) static boolean inVisualAge
           
(パッケージプライベート)  java.lang.String lineNumber
          Caller's line number.
(パッケージプライベート)  java.lang.String methodName
          Caller's method name.
static java.lang.String NA
          When location information is not available the constant NA is returned.
(パッケージプライベート) static long serialVersionUID
           
 
コンストラクタの概要
InvocationInfo(java.lang.String fqnOfCallingClass)
           
InvocationInfo(java.lang.Throwable t, java.lang.String fqnOfCallingClass)
          Instantiate location information based on a Throwable.
 
メソッドの概要
 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.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

lineNumber

transient java.lang.String lineNumber
Caller's line number.


fileName

transient java.lang.String fileName
Caller's file name.


className

transient java.lang.String className
Caller's fully qualified class name.


methodName

transient java.lang.String methodName
Caller's method name.


fullInfo

public java.lang.String fullInfo
All available caller information, in the format fully.qualified.classname.of.caller.methodName(Filename.java:line)


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 ? .

関連項目:
定数フィールド値

serialVersionUID

static final long serialVersionUID
関連項目:
定数フィールド値

inVisualAge

static boolean inVisualAge
コンストラクタの詳細

InvocationInfo

public InvocationInfo(java.lang.String fqnOfCallingClass)

InvocationInfo

public InvocationInfo(java.lang.Throwable t,
                      java.lang.String fqnOfCallingClass)
Instantiate location information based on a Throwable. We expect the Throwable t, to be in the format
 
 	 java.lang.Throwable
 	 ...
 	 at org.apache.log4j.PatternLayout.format(PatternLayout.java:413)
 	 at org.apache.log4j.FileAppender.doAppend(FileAppender.java:183)
 	 at org.apache.log4j.Category.callAppenders(Category.java:131)
 	 at org.apache.log4j.Category.log(Category.java:512)
 	 at callers.fully.qualified.className.methodName(FileName.java:74)
 	 ...
 	 
 

However, we can also deal with JIT compilers that "lose" the location information, especially between the parentheses.

メソッドの詳細

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.

This information is not always available.


getLineNumber

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

This information is not always available.


getMethodName

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



Copyright © 2004 asyrinx organization. All Rights Reserved.