public StackTraceElement (String declaringClass, String methodName, String fileName, int lineNumber)

Creates a stack trace element representing the specified execution point. The module name and module version of the stack trace element will be null.

Parameters:
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 or methodName is null

Since:  1.5

@revised 9
@spec JPMS