public class CodeLocation extends Object
| Modifier and Type | Method and Description |
|---|---|
static CodeLocation |
fromCallerLocation(int stackOffset)
Create a code location based on an offset of the stack of the current caller
A stack offset of zero represents the calling method and one represents the caller of the calling method
If no location information is available then an
unknownLocation() is returned |
String |
getLocation() |
static CodeLocation |
unknownLocation()
Creates a code location representing an unknown source location
|
public String getLocation()
public static CodeLocation fromCallerLocation(int stackOffset)
unknownLocation() is returnedstackOffset - depth into the stack relative to the calling method to get the locationpublic static CodeLocation unknownLocation()
Copyright © 2021. All rights reserved.