APIdia Launch Partner
Top Inners Fields Constructors Methods
java.lang

pack-priv final Class LiveStackFrameInfo

extends StackFrameInfo
implements LiveStackFrame
Class Inheritance
All Implemented Interfaces
java.lang.LiveStackFrame, java.lang.StackWalker.StackFrame

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Field Summary

Modifier and TypeField and Description
private static Object[]
private Object[]
private int
private static final int
private static final int
private Object[]
private Object[]

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static LiveStackFrame.PrimitiveSlot
asPrimitive(int value)

pack-priv static LiveStackFrame.PrimitiveSlot
asPrimitive(long value)

public Object[]
getLocals()

Implements java.lang.LiveStackFrame.getLocals.

Gets the local variable array of this stack frame.

public Object[]
getMonitors()

Implements java.lang.LiveStackFrame.getMonitors.

Return the monitors held by this stack frame.

public Object[]
getStack()

Implements java.lang.LiveStackFrame.getStack.

Gets the operand stack of this stack frame.

public String
toString()

Overrides java.lang.StackFrameInfo.toString.

Returns a string representation of the object.

Inherited from java.lang.StackFrameInfo:
declaringClassgetByteCodeIndexgetClassNamegetDescriptorgetFileNamegetLineNumbergetMethodNamegetMethodTypeisNativeMethodtoStackTraceElement

Field Detail

EMPTY_ARRAYback to summary
private static Object[] EMPTY_ARRAY
localsback to summary
private Object[] locals
modeback to summary
private int mode
MODE_COMPILEDback to summary
private static final int MODE_COMPILED
MODE_INTERPRETEDback to summary
private static final int MODE_INTERPRETED
monitorsback to summary
private Object[] monitors
operandsback to summary
private Object[] operands

Constructor Detail

LiveStackFrameInfoback to summary
pack-priv LiveStackFrameInfo(StackWalker walker)

Method Detail

asPrimitiveback to summary
pack-priv static LiveStackFrame.PrimitiveSlot asPrimitive(int value)
asPrimitiveback to summary
pack-priv static LiveStackFrame.PrimitiveSlot asPrimitive(long value)
getLocalsback to summary
public Object[] getLocals()

Implements java.lang.LiveStackFrame.getLocals.

Doc from java.lang.LiveStackFrame.getLocals.

Gets the local variable array of this stack frame.

A single local variable can hold a value of type boolean, byte, char, short, int, float, reference or returnAddress. A pair of local variables can hold a value of type long or double (JVMS section 2.6.1). Primitive locals are represented in the returned array as PrimitiveSlots, with longs and doubles occupying a pair of consecutive PrimitiveSlots.

The current VM implementation does not provide specific type information for primitive locals. This method simply returns the raw contents of the VM's primitive locals on a best-effort basis, without indicating a specific type.

The returned array may contain null entries for local variables that are not live.

Annotations
@Override
getMonitorsback to summary
public Object[] getMonitors()

Implements java.lang.LiveStackFrame.getMonitors.

Doc from java.lang.LiveStackFrame.getMonitors.

Return the monitors held by this stack frame. This method returns an empty array if no monitor is held by this stack frame.

Annotations
@Override
getStackback to summary
public Object[] getStack()

Implements java.lang.LiveStackFrame.getStack.

Doc from java.lang.LiveStackFrame.getStack.

Gets the operand stack of this stack frame.

The 0-th element of the returned array represents the top of the operand stack. This method returns an empty array if the operand stack is empty.

Each entry on the operand stack can hold a value of any Java Virtual Machine Type. For a value of primitive type, the element in the returned array is a PrimitiveSlot object; otherwise, the element is the Object on the operand stack.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.StackFrameInfo.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
java.lang back to summary

private Class LiveStackFrameInfo.PrimitiveSlot32

extends PrimitiveSlot
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final int

Constructor Summary

AccessConstructor and Description
pack-priv
PrimitiveSlot32(int value)

Method Summary

Modifier and TypeMethod and Description
public int
intValue()

Overrides java.lang.LiveStackFrame.PrimitiveSlot.intValue.

Returns the int value if this primitive value is of size 4

public int
size()

Implements abstract java.lang.LiveStackFrame.PrimitiveSlot.size.

Returns the size, in bytes, of the slot.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.LiveStackFrame.PrimitiveSlot:
longValue

Field Detail

valueback to summary
pack-priv final int value

Constructor Detail

PrimitiveSlot32back to summary
pack-priv PrimitiveSlot32(int value)

Method Detail

intValueback to summary
public int intValue()

Overrides java.lang.LiveStackFrame.PrimitiveSlot.intValue.

Doc from java.lang.LiveStackFrame.PrimitiveSlot.intValue.

Returns the int value if this primitive value is of size 4

Annotations
@Override
sizeback to summary
public int size()

Implements abstract java.lang.LiveStackFrame.PrimitiveSlot.size.

Doc from java.lang.LiveStackFrame.PrimitiveSlot.size.

Returns the size, in bytes, of the slot.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
java.lang back to summary

private Class LiveStackFrameInfo.PrimitiveSlot64

extends PrimitiveSlot
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final long

Constructor Summary

AccessConstructor and Description
pack-priv
PrimitiveSlot64(long value)

Method Summary

Modifier and TypeMethod and Description
public long
longValue()

Overrides java.lang.LiveStackFrame.PrimitiveSlot.longValue.

Returns the long value if this primitive value is of size 8

public int
size()

Implements abstract java.lang.LiveStackFrame.PrimitiveSlot.size.

Returns the size, in bytes, of the slot.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.LiveStackFrame.PrimitiveSlot:
intValue

Field Detail

valueback to summary
pack-priv final long value

Constructor Detail

PrimitiveSlot64back to summary
pack-priv PrimitiveSlot64(long value)

Method Detail

longValueback to summary
public long longValue()

Overrides java.lang.LiveStackFrame.PrimitiveSlot.longValue.

Doc from java.lang.LiveStackFrame.PrimitiveSlot.longValue.

Returns the long value if this primitive value is of size 8

Annotations
@Override
sizeback to summary
public int size()

Implements abstract java.lang.LiveStackFrame.PrimitiveSlot.size.

Doc from java.lang.LiveStackFrame.PrimitiveSlot.size.

Returns the size, in bytes, of the slot.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override