class Option

Known Direct Subclasses

StackWalker.Option.RETAIN_CLASS_REFERENCE

Retains Class object in StackFrames walked by this StackWalker.

StackWalker.Option.SHOW_HIDDEN_FRAMES

Shows all hidden frames.

StackWalker.Option.SHOW_REFLECT_FRAMES

Shows all reflection frames.

Stack walker option to configure the stack frame information obtained by a StackWalker.

Summary

Enum values

Retains Class object in StackFrames walked by this StackWalker.

Shows all hidden frames.

Shows all reflection frames.

Enum values

SHOW_HIDDEN_FRAMES

enum val SHOW_HIDDEN_FRAMES : StackWalker.Option

Shows all hidden frames.

A Java Virtual Machine implementation may hide implementation specific frames in addition to reflection frames. A StackWalker with this SHOW_HIDDEN_FRAMES option will show all hidden frames (including reflection frames).

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-02-26 UTC.