APIdia Launch Partner
Top Description Fields Constructors Methods
java.lang

pack-priv Class ClassFrameInfo

extends Object
implements StackFrame
Class Inheritance
All Implemented Interfaces
java.lang.StackWalker.StackFrame
Known Direct Subclasses
java.lang.StackFrameInfo
Imports
jdk.internal.access.JavaLangInvokeAccess, .SharedSecrets, java.lang.StackWalker.StackFrame

ClassFrameInfo is an implementation of StackFrame that contains only the class name and declaring class. Methods that access the method information such as method name, will throw UnsupportedOperationException.
See Also
StackWalker.Option#DROP_METHOD_INFO

Field Summary

Modifier and TypeField and Description
pack-priv Object
pack-priv int
pack-priv static final JavaLangInvokeAccess
private static final int
private static final int

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv Class<?>
pack-priv void
public int
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()

Implements java.lang.StackWalker.StackFrame.getClassName.

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

public Class<?>
getDeclaringClass()

Implements java.lang.StackWalker.StackFrame.getDeclaringClass.

Returns the declaring Class for the method represented by this stack frame.

public String
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()

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()

Implements java.lang.StackWalker.StackFrame.getMethodName.

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

pack-priv boolean
pack-priv boolean
public boolean
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.

pack-priv boolean
public StackTraceElement
toStackTraceElement()

Implements java.lang.StackWalker.StackFrame.toStackTraceElement.

Returns StackTraceElement for this stack frame.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

classOrMemberNameback to summary
pack-priv Object classOrMemberName
flagsback to summary
pack-priv int flags
JLIAback to summary
pack-priv static final JavaLangInvokeAccess JLIA
MEMBER_INFO_FLAGSback to summary
private static final int MEMBER_INFO_FLAGS
RETAIN_CLASS_REF_BITback to summary
private static final int RETAIN_CLASS_REF_BIT

Constructor Detail

ClassFrameInfoback to summary
pack-priv ClassFrameInfo(StackWalker walker)

Method Detail

declaringClassback to summary
pack-priv Class<?> declaringClass()
ensureRetainClassRefEnabledback to summary
pack-priv void ensureRetainClassRefEnabled()
getByteCodeIndexback to summary
public int 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()

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
getDeclaringClassback to summary
public Class<?> getDeclaringClass()

Implements java.lang.StackWalker.StackFrame.getDeclaringClass.

Doc from java.lang.StackWalker.StackFrame.getDeclaringClass.

Returns the declaring Class for the method represented by this stack frame.

Annotations
@Override
getFileNameback to summary
public String 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()

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()

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
isCallerSensitiveback to summary
pack-priv boolean isCallerSensitive()
isHiddenback to summary
pack-priv boolean isHidden()
isNativeMethodback to summary
public boolean 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
retainClassRefback to summary
pack-priv boolean retainClassRef()
toStackTraceElementback to summary
public StackTraceElement 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.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