KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > spoon > support > reflect > eval > SymbolicWrappedException


1 package spoon.support.reflect.eval;
2
3 import spoon.reflect.declaration.CtElement;
4 import spoon.reflect.eval.SymbolicEvaluationStack;
5 import spoon.reflect.eval.SymbolicInstance;
6
7 public class SymbolicWrappedException extends RuntimeException JavaDoc {
8
9     private static final long serialVersionUID = 1L;
10
11     private SymbolicInstance<? extends Throwable JavaDoc> cause;
12     
13     @SuppressWarnings JavaDoc("unchecked")
14     public SymbolicWrappedException(SymbolicInstance<? extends Throwable JavaDoc> cause, CtElement element, SymbolicEvaluationStack stack) {
15         this.cause=cause;
16         this.element=element;
17         this.stack=new SymbolicEvaluationStack(stack);
18     }
19
20     CtElement element;
21
22     public CtElement getElement() {
23         return element;
24     }
25
26     public void setElement(CtElement element) {
27         this.element = element;
28     }
29
30     SymbolicEvaluationStack stack;
31
32     public SymbolicEvaluationStack getStack() {
33         return stack;
34     }
35
36     public void setStack(SymbolicEvaluationStack stack) {
37         this.stack = stack;
38     }
39
40     public SymbolicInstance<? extends Throwable JavaDoc> getAbstractCause() {
41         return cause;
42     }
43
44     public void setCause(SymbolicInstance<? extends Throwable JavaDoc> cause) {
45         this.cause = cause;
46     }
47 }
48
Popular Tags