public class LineNumbers
extends java.lang.Object
Modifier and Type | Class and 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 and Description |
---|
LineNumbers() |
Modifier and Type | Method and Description |
---|---|
static LineNumbers.Result |
apply(java.lang.Object obj)
Scala API: Obtain line number information for the class defining the given object.
|
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.
|
public static LineNumbers.Result apply(java.lang.Object obj)
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.
obj
- (undocumented)public static java.lang.String prettyName(java.lang.Object obj)
obj
- (undocumented)