public final class JDIHelpers extends java.lang.Object implements IJDIHelpers
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
STRATA_ID |
INSTANCE| Modifier and Type | Method and Description |
|---|---|
java.io.File |
getClassesLocation(java.lang.Object element)
Return classes location the given element was loaded from or
null if the location cannot be determined. |
java.lang.String |
getSourcePath(java.lang.Object element)
Returns source path of the given element or
null if the source path cannot be determined. |
java.lang.Iterable<java.io.File> |
getStackFramesClassesLocations(java.lang.Object element)
If the given element is a
IStackFrame, returns classes locations of the stack frames "beneath" the given element. |
public static final java.lang.String STRATA_ID
public java.io.File getClassesLocation(java.lang.Object element)
throws DebugException
IJDIHelpersnull if the location cannot be determined.getClassesLocation in interface IJDIHelpersDebugExceptionpublic java.lang.String getSourcePath(java.lang.Object element)
throws DebugException
IJDIHelpersnull if the source path cannot be determined. The returned path is relative to a sources
container.getSourcePath in interface IJDIHelpersDebugExceptionpublic java.lang.Iterable<java.io.File> getStackFramesClassesLocations(java.lang.Object element)
throws DebugException
IJDIHelpersIStackFrame, returns classes locations of the stack frames "beneath" the given element. The returned iterable
does not include null elements.
Returns empty iterable if the given element is not a IStackFrame.getStackFramesClassesLocations in interface IJDIHelpersDebugException