public StackTraceElement (String classLoaderName, String moduleName, String moduleVersion, String declaringClass, String methodName, String fileName, int lineNumber)

Creates a stack trace element representing the specified execution point.

Parameters:
classLoaderName    the class loader name if the class loader of the class containing the execution point represented by the stack trace is named; otherwise null
moduleName    the module name if the class containing the execution point represented by the stack trace is in a named module; otherwise null
moduleVersion    the module version if the class containing the execution point represented by the stack trace is in a named module that has a version; otherwise null
declaringClass    the fully qualified name of the class containing the execution point represented by the stack trace element
methodName    the name of the method containing the execution point represented by the stack trace element
fileName    the name of the file containing the execution point represented by the stack trace element, or null if this information is unavailable
lineNumber    the line number of the source line containing the execution point represented by this stack trace element, or a negative number if this information is unavailable. A value of -2 indicates that the method containing the execution point is a native method

Exceptions:
NullPointerException    if declaringClass is null or methodName is null

Since:  9

@spec JPMS