Class Caller
java.lang.Object
org.jpos.util.Caller
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringinfo()Returns information for the immediate caller of the method that calls this helper.static Stringinfo(int pos) Returns information for the callerposframes above the immediate caller.static StringFormats a stack trace element asabbreviatedClass.method:line.static StringshortClassName(String clazz) Abbreviates a fully-qualified class name by collapsing every package segment to its first character (e.g.
-
Constructor Details
-
Caller
public Caller()Utility class; instances carry no state.
-
-
Method Details
-
info
-
info
-
info
Formats a stack trace element asabbreviatedClass.method:line.- Parameters:
st- stack frame to format- Returns:
- abbreviated
class.method:linestring
-
shortClassName
Abbreviates a fully-qualified class name by collapsing every package segment to its first character (e.g.o.j.u.Caller).- Parameters:
clazz- fully-qualified class name- Returns:
- the abbreviated class name
-