Package akka.util
Class LineNumbers
- java.lang.Object
-
- akka.util.LineNumbers
-
public class LineNumbers extends java.lang.Object
Scala API: Obtain line number information for the class defining the given object. This is done by reading the byte code (a potentially blocking IO operation) and interpreting the debug information that it may contain.This does not work for Java 8 lambdas that are not Serializable, because the language designers have consciously made it impossible to obtain the byte code for those.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LineNumbers.NoSourceInfo$
static interface
LineNumbers.Result
static class
LineNumbers.SourceFile
static class
LineNumbers.SourceFile$
static class
LineNumbers.SourceFileLines
static class
LineNumbers.SourceFileLines$
static class
LineNumbers.UnknownSourceFormat
static class
LineNumbers.UnknownSourceFormat$
-
Constructor Summary
Constructors Constructor Description LineNumbers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LineNumbers.Result
apply(java.lang.Object obj)
static java.lang.String
prettyName(java.lang.Object obj)
Extract source information if available and format a string to identify the class definition in question.
-
-
-
Method Detail
-
apply
public static LineNumbers.Result apply(java.lang.Object obj)
-
prettyName
public static java.lang.String prettyName(java.lang.Object obj)
Extract source information if available and format a string to identify the class definition in question. This will include the package name and either source file information or the class name.- Parameters:
obj
- (undocumented)- Returns:
- (undocumented)
-
-