public final class MethodLocation extends Object implements Serializable
SourceLocation for better reuse.SourceLocation,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static MethodLocation |
UNKNOWN
Constant in case source location information is unavailable.
|
| Constructor and Description |
|---|
MethodLocation(Class clazz,
String methodName) |
MethodLocation(String declaringClass,
String methodName,
String fileName) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDeclaringClass() |
String |
getFileName() |
String |
getMethodName() |
StackTraceElement |
toStackTrace(int lineNumber) |
public static final MethodLocation UNKNOWN
public String getDeclaringClass()
public String getMethodName()
public String getFileName()
public StackTraceElement toStackTrace(int lineNumber)
Copyright © 2011–2019. All rights reserved.