2007-06-30 02:39:01 +00:00
|
|
|
package java.lang;
|
|
|
|
|
|
|
|
public class StackTraceElement {
|
2007-07-04 22:27:08 +00:00
|
|
|
private static int NativeLine = -2;
|
2007-06-30 02:39:01 +00:00
|
|
|
|
2007-07-04 22:27:08 +00:00
|
|
|
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;
|
|
|
|
}
|
2007-06-30 02:39:01 +00:00
|
|
|
}
|