java.lang.Object | |
↳ | dalvik.system.VMStack |
This class is deprecated.
this is an internal Dalvik class that is not appropriate for
general use. It will be removed from the public API in a future release.
Provides a limited interface to the Dalvik VM stack. This class is mostly used for implementing security checks.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the defining class loader of the caller's caller.
| |||||||||||
Returns the defining class loader of the caller's caller's caller.
| |||||||||||
Creates an array of classes from the methods at the top of the stack.
| |||||||||||
Retrieves the stack trace from the specified thread.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
|
Returns the defining class loader of the caller's caller.
null
if this is the
bootstrap class loader.
Returns the defining class loader of the caller's caller's caller.
null
if this is the
bootstrap class loader.
Creates an array of classes from the methods at the top of the stack. We continue until we reach the bottom of the stack or exceed the specified maximum depth. If stopAtPrivileged is set, the last element of the array will be the caller of the most-recent privileged method.
The topmost stack frame (this method) and the one above that (the caller) are excluded from the array. Frames with java.lang.reflect classes are skipped over.
The classes in the array are the defining classes of the methods.
This is expected to be identical to Harmony's VMStack.getClasses.
maxDepth | maximum number of classes to return, or -1 for all |
---|---|
stopAtPrivileged | stop when a privileged frame is reached |
Retrieves the stack trace from the specified thread.
t | thread of interest |
---|