< prev index next >
src/java.base/share/classes/java/lang/StackWalker.java
Print this page
*** 125,165 ****
* Option.RETAIN_CLASS_REFERENCE}.
*/
public Class<?> getDeclaringClass();
/**
- * Returns the name of the source file containing the execution point
- * represented by this stack frame. Generally, this corresponds
- * to the {@code SourceFile} attribute of the relevant {@code class}
- * file as defined by <cite>The Java Virtual Machine Specification</cite>.
- * In some systems, the name may refer to some source code unit
- * other than a file, such as an entry in a source repository.
- *
- * @return the name of the file containing the execution point
- * represented by this stack frame, or empty {@code Optional}
- * is unavailable.
- *
- * @jvms 4.7.10 The {@code SourceFile} Attribute
- */
- public Optional<String> getFileName();
-
- /**
- * Returns the line number of the source line containing the execution
- * point represented by this stack frame. Generally, this is
- * derived from the {@code LineNumberTable} attribute of the relevant
- * {@code class} file as defined by <cite>The Java Virtual Machine
- * Specification</cite>.
- *
- * @return the line number of the source line containing the execution
- * point represented by this stack frame, or empty
- * {@code Optional} if this information is unavailable.
- *
- * @jvms 4.7.12 The {@code LineNumberTable} Attribute
- */
- public OptionalInt getLineNumber();
-
- /**
* Returns {@code true} if the method containing the execution point
* represented by this stack frame is a native method.
*
* @return {@code true} if the method containing the execution point
* represented by this stack frame is a native method.
--- 125,134 ----
< prev index next >