01: /*
02: * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package org.terracotta.dso.util;
05:
06: import org.eclipse.jdt.core.IMethod;
07: import org.eclipse.jdt.core.IType;
08: import org.eclipse.jface.text.IRegion;
09:
10: public class StackElementInfo {
11: private StackTraceElement fStackElement;
12: private IRegion fRegion;
13: private IType fType;
14: private IMethod fMethod;
15:
16: public StackElementInfo(StackTraceElement stackElement) {
17: fStackElement = stackElement;
18: }
19:
20: public StackTraceElement getStackElement() {
21: return fStackElement;
22: }
23:
24: public IRegion getRegion() {
25: return fRegion;
26: }
27:
28: public void setRegion(IRegion region) {
29: fRegion = region;
30: }
31:
32: public IType getType() {
33: return fType;
34: }
35:
36: public void setType(IType type) {
37: fType = type;
38: }
39:
40: public IMethod getMethod() {
41: return fMethod;
42: }
43:
44: public void setMethod(IMethod method) {
45: fMethod = method;
46: }
47:
48: public String toString() {
49: return fStackElement.toString();
50: }
51: }
|