1 Clazz.load(null,"java.lang.StackTraceElement",["java.lang.NullPointerException","$.StringBuilder"],function(){
2 c$=Clazz.decorateAsClass(function(){
3 this.declaringClass=null;
7 Clazz.instantialize(this,arguments);
8 },java.lang,"StackTraceElement",null,java.io.Serializable);
9 Clazz.makeConstructor(c$,
10 function(cls,method,file,line){
11 if(cls==null||method==null){
12 throw new NullPointerException();
13 }this.declaringClass=cls;
14 this.methodName=method;
18 Clazz.overrideMethod(c$,"equals",
20 if(!(Clazz.instanceOf(obj,StackTraceElement))){
23 if((this.methodName==null)||(castObj.methodName==null)){
25 }if(!this.getMethodName().equals(castObj.getMethodName())){
27 }if(!this.getClassName().equals(castObj.getClassName())){
29 }var localFileName=this.getFileName();
30 if(localFileName==null){
31 if(castObj.getFileName()!=null){
34 if(!localFileName.equals(castObj.getFileName())){
36 }}if(this.getLineNumber()!=castObj.getLineNumber()){
40 Clazz.defineMethod(c$,"getClassName",
42 return(this.declaringClass==null)?"<unknown class>":this.declaringClass;
44 Clazz.defineMethod(c$,"getFileName",
48 Clazz.defineMethod(c$,"getLineNumber",
50 return this.lineNumber;
52 Clazz.defineMethod(c$,"getMethodName",
54 return(this.methodName==null)?"<unknown method>":this.methodName;
56 Clazz.overrideMethod(c$,"hashCode",
58 if(this.methodName==null){
60 }return this.methodName.hashCode()^this.declaringClass.hashCode();
62 Clazz.defineMethod(c$,"isNativeMethod",
64 return this.lineNumber==-2;
66 Clazz.overrideMethod(c$,"toString",
68 var buf=new StringBuilder(80);
69 buf.append(this.getClassName());
71 buf.append(this.getMethodName());
72 if(this.isNativeMethod()){
73 buf.append("(Native Method)");
75 var fName=this.getFileName();
77 buf.append("(Unknown Source)");
79 var lineNum=this.getLineNumber();
86 }}return buf.toString();