mirror of
https://github.com/corda/corda.git
synced 2024-12-29 09:18:58 +00:00
40 lines
695 B
Java
40 lines
695 B
Java
package java.lang;
|
|
|
|
public class StackTraceElement {
|
|
private static int NativeLine = -2;
|
|
|
|
private String class_;
|
|
private String method;
|
|
private String file;
|
|
private int line;
|
|
|
|
private StackTraceElement(String class_, String method, String file,
|
|
int line)
|
|
{
|
|
this.class_ = class_;
|
|
this.method = method;
|
|
this.file = file;
|
|
this.line = line;
|
|
}
|
|
|
|
public String getClassName() {
|
|
return class_;
|
|
}
|
|
|
|
public String getMethodName() {
|
|
return method;
|
|
}
|
|
|
|
public String getFileName() {
|
|
return file;
|
|
}
|
|
|
|
public int getLineNumber() {
|
|
return line;
|
|
}
|
|
|
|
public boolean isNativeMethod() {
|
|
return line == NativeLine;
|
|
}
|
|
}
|