home *** CD-ROM | disk | FTP | other *** search
- package java.lang;
-
- import java.io.Serializable;
-
- public final class StackTraceElement implements Serializable {
- private String declaringClass;
- private String methodName;
- private String fileName;
- private int lineNumber;
- private static final long serialVersionUID = 6992337162326171013L;
-
- public StackTraceElement(String var1, String var2, String var3, int var4) {
- if (var1 == null) {
- throw new NullPointerException("Declaring class is null");
- } else if (var2 == null) {
- throw new NullPointerException("Method name is null");
- } else {
- this.declaringClass = var1;
- this.methodName = var2;
- this.fileName = var3;
- this.lineNumber = var4;
- }
- }
-
- public String getFileName() {
- return this.fileName;
- }
-
- public int getLineNumber() {
- return this.lineNumber;
- }
-
- public String getClassName() {
- return this.declaringClass;
- }
-
- public String getMethodName() {
- return this.methodName;
- }
-
- public boolean isNativeMethod() {
- return this.lineNumber == -2;
- }
-
- public String toString() {
- return this.getClassName() + "." + this.methodName + (this.isNativeMethod() ? "(Native Method)" : (this.fileName != null && this.lineNumber >= 0 ? "(" + this.fileName + ":" + this.lineNumber + ")" : (this.fileName != null ? "(" + this.fileName + ")" : "(Unknown Source)")));
- }
-
- public boolean equals(Object var1) {
- if (var1 == this) {
- return true;
- } else if (!(var1 instanceof StackTraceElement)) {
- return false;
- } else {
- StackTraceElement var2 = (StackTraceElement)var1;
- return var2.declaringClass.equals(this.declaringClass) && var2.lineNumber == this.lineNumber && method_0(this.methodName, var2.methodName) && method_0(this.fileName, var2.fileName);
- }
- }
-
- // $FF: renamed from: eq (java.lang.Object, java.lang.Object) boolean
- private static boolean method_0(Object var0, Object var1) {
- return var0 == var1 || var0 != null && var0.equals(var1);
- }
-
- public int hashCode() {
- int var1 = 31 * this.declaringClass.hashCode() + this.methodName.hashCode();
- var1 = 31 * var1 + (this.fileName == null ? 0 : this.fileName.hashCode());
- var1 = 31 * var1 + this.lineNumber;
- return var1;
- }
- }
-