Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.opensolaris.os.dtrace
Class StackFrame

    java.lang.Object
      org.opensolaris.os.dtrace.StackFrame

All Implemented Interfaces:
  java.io.Serializable

    public final class StackFrame

extends java.lang.Object
implements java.io.Serializable

A single stack frame in a `StackValueRecord`.

Immutable. Supports persistence using `XMLEncoder`.

See Also:
  Serialized Form

Constructor Summary
`StackFrame(java.lang.String f)` Creates a single stack frame.

Method Summary
`boolean` | `equals(java.lang.Object o)` Compares the specified object with this `StackFrame` for equality.
`java.lang.String` | `getFrame()` Gets the human-readable string representation of this stack frame.
`int` | `hashCode()` Overridden to ensure that equal instances have equal hash codes.
`java.lang.String` | `toString()` Gets the string representation of this stack frame, in this case the same value returned by `getFrame()`.

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

Constructor Detail

### StackFrame

    public StackFrame(java.lang.String f)

  Creates a single stack frame. Supports XML persistence.

  Parameters:
    `f` - human-readable string representation of this stack frame
  Throws:
    `java.lang.NullPointerException` - if the given string representation is `null`

Method Detail

### getFrame

    public java.lang.String getFrame()

  Gets the human-readable string representation of this stack frame. Supports XML persistence.

  Returns:
    the human-readable string representation of this stack frame.

### equals

    public boolean equals(java.lang.Object o)

  Compares the specified object with this `StackFrame` for equality. Returns `true` if and only if the specified object is also a `StackFrame` and both instances have the same human-readable string representation.

  Overrides:
    `equals` in class `java.lang.Object`
  Returns:
    `true` if and only if the specified object is also a `StackFrame` and both instances have the same human-readable string representation

### hashCode

    public int hashCode()

  Overridden to ensure that equal instances have equal hash codes.

  Overrides:
    `hashCode` in class `java.lang.Object`

### toString

    public java.lang.String toString()

  Gets the string representation of this stack frame, in this case the same value returned by `getFrame()`.

  Overrides:
    `toString` in class `java.lang.Object`

Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD