APIdia Launch Partner
Top Description Fields Constructors Methods
java.lang

pack-priv Class StackFrameInfo

extends ClassFrameInfo
Class Inheritance
Known Direct Subclasses
java.lang.LiveStackFrameInfo
Imports
jdk.internal.vm.ContinuationScope, java.lang.invoke.MethodType, java.lang.reflect.Modifier

StackFrameInfo is an implementation of StackFrame that contains the class and method information. This is used by stack walker configured without StackWalker.Option#DROP_METHOD_INFO.

Field Summary

Modifier and TypeField and Description
private int
private ContinuationScope
private String
private volatile StackTraceElement
private Object
Inherited from java.lang.ClassFrameInfo:
classOrMemberNameflagsJLIA

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv Class<?>
private native void
public int
getByteCodeIndex()

Overrides java.lang.ClassFrameInfo.getByteCodeIndex.

Implements java.lang.StackWalker.StackFrame.getByteCodeIndex.

Returns the index to the code array of the Code attribute containing the execution point represented by this stack frame.

public String
getClassName()

Overrides java.lang.ClassFrameInfo.getClassName.

Implements java.lang.StackWalker.StackFrame.getClassName.

Returns the binary name of the declaring class of the method represented by this stack frame.

private String
public String
getDescriptor()

Overrides default java.lang.StackWalker.StackFrame.getDescriptor.

Returns the descriptor of the method represented by this stack frame as defined by The Java Virtual Machine Specification.

public String
getFileName()

Overrides java.lang.ClassFrameInfo.getFileName.

Implements java.lang.StackWalker.StackFrame.getFileName.

Returns the name of the source file containing the execution point represented by this stack frame.

public int
getLineNumber()

Overrides java.lang.ClassFrameInfo.getLineNumber.

Implements java.lang.StackWalker.StackFrame.getLineNumber.

Returns the line number of the source line containing the execution point represented by this stack frame.

public String
getMethodName()

Overrides java.lang.ClassFrameInfo.getMethodName.

Implements java.lang.StackWalker.StackFrame.getMethodName.

Returns the name of the method represented by this stack frame.

public MethodType
getMethodType()

Overrides default java.lang.StackWalker.StackFrame.getMethodType.

Returns the MethodType representing the parameter types and the return type for the method represented by this stack frame.

public boolean
isNativeMethod()

Overrides java.lang.ClassFrameInfo.isNativeMethod.

Implements java.lang.StackWalker.StackFrame.isNativeMethod.

Returns true if the method containing the execution point represented by this stack frame is a native method.

public StackTraceElement
public String
toString()

Overrides java.lang.ClassFrameInfo.toString.

Returns a string representation of the object.

Inherited from java.lang.ClassFrameInfo:
ensureRetainClassRefEnabledgetDeclaringClassisCallerSensitiveisHiddenretainClassRef

Field Detail

bciback to summary
private int bci
contScopeback to summary
private ContinuationScope contScope
nameback to summary
private String name
steback to summary
private volatile StackTraceElement ste
typeback to summary
private Object type

Constructor Detail

StackFrameInfoback to summary
pack-priv StackFrameInfo(StackWalker walker)

Method Detail

declaringClassback to summary
pack-priv Class<?> declaringClass()

Overrides java.lang.ClassFrameInfo.declaringClass.

expandStackFrameInfoback to summary
private native void expandStackFrameInfo()
getByteCodeIndexback to summary
public int getByteCodeIndex()

Overrides java.lang.ClassFrameInfo.getByteCodeIndex.

Implements java.lang.StackWalker.StackFrame.getByteCodeIndex.

Doc from java.lang.StackWalker.StackFrame.getByteCodeIndex.

Returns the index to the code array of the Code attribute containing the execution point represented by this stack frame. The code array gives the actual bytes of Java Virtual Machine code that implement the method.

Annotations
@Override
getClassNameback to summary
public String getClassName()

Overrides java.lang.ClassFrameInfo.getClassName.

Implements java.lang.StackWalker.StackFrame.getClassName.

Doc from java.lang.StackWalker.StackFrame.getClassName.

Returns the binary name of the declaring class of the method represented by this stack frame.

Annotations
@Override
getContinuationScopeNameback to summary
private String getContinuationScopeName()
getDescriptorback to summary
public String getDescriptor()

Overrides default java.lang.StackWalker.StackFrame.getDescriptor.

Doc from java.lang.StackWalker.StackFrame.getDescriptor.

Returns the descriptor of the method represented by this stack frame as defined by The Java Virtual Machine Specification.

Annotations
@Override
getFileNameback to summary
public String getFileName()

Overrides java.lang.ClassFrameInfo.getFileName.

Implements java.lang.StackWalker.StackFrame.getFileName.

Doc from java.lang.StackWalker.StackFrame.getFileName.

Returns the name of the source file containing the execution point represented by this stack frame. Generally, this corresponds to the SourceFile attribute of the relevant class file as defined by The Java Virtual Machine Specification. In some systems, the name may refer to some source code unit other than a file, such as an entry in a source repository.

Annotations
@Override
getLineNumberback to summary
public int getLineNumber()

Overrides java.lang.ClassFrameInfo.getLineNumber.

Implements java.lang.StackWalker.StackFrame.getLineNumber.

Doc from java.lang.StackWalker.StackFrame.getLineNumber.

Returns the line number of the source line containing the execution point represented by this stack frame. Generally, this is derived from the LineNumberTable attribute of the relevant class file as defined by The Java Virtual Machine Specification.

Annotations
@Override
getMethodNameback to summary
public String getMethodName()

Overrides java.lang.ClassFrameInfo.getMethodName.

Implements java.lang.StackWalker.StackFrame.getMethodName.

Doc from java.lang.StackWalker.StackFrame.getMethodName.

Returns the name of the method represented by this stack frame.

Annotations
@Override
getMethodTypeback to summary
public MethodType getMethodType()

Overrides default java.lang.StackWalker.StackFrame.getMethodType.

Doc from java.lang.StackWalker.StackFrame.getMethodType.

Returns the MethodType representing the parameter types and the return type for the method represented by this stack frame.

Annotations
@Override
isNativeMethodback to summary
public boolean isNativeMethod()

Overrides java.lang.ClassFrameInfo.isNativeMethod.

Implements java.lang.StackWalker.StackFrame.isNativeMethod.

Doc from java.lang.StackWalker.StackFrame.isNativeMethod.

Returns true if the method containing the execution point represented by this stack frame is a native method.

Annotations
@Override
toStackTraceElementback to summary
public StackTraceElement toStackTraceElement()

Overrides java.lang.ClassFrameInfo.toStackTraceElement.

Implements java.lang.StackWalker.StackFrame.toStackTraceElement.

Doc from java.lang.StackWalker.StackFrame.toStackTraceElement.

Returns StackTraceElement for this stack frame.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.ClassFrameInfo.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