1 /*
2 * Licensed under the GPL License. You may not use this file except in compliance with the License.
3 * You may obtain a copy of the License at
4 *
5 * https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
6 *
7 * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
8 * WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
9 * PURPOSE.
10 */
11 package psiprobe.model;
12
13 /**
14 * The Class ThreadStackElement.
15 */
16 public class ThreadStackElement {
17
18 /** The class name. */
19 private String className;
20
21 /** The file name. */
22 private String fileName;
23
24 /** The method name. */
25 private String methodName;
26
27 /** The line number. */
28 private int lineNumber;
29
30 /** The native method. */
31 private boolean nativeMethod;
32
33 /**
34 * Gets the class name.
35 *
36 * @return the class name
37 */
38 public String getClassName() {
39 return className;
40 }
41
42 /**
43 * Sets the class name.
44 *
45 * @param className the new class name
46 */
47 public void setClassName(String className) {
48 this.className = className;
49 }
50
51 /**
52 * Gets the file name.
53 *
54 * @return the file name
55 */
56 public String getFileName() {
57 return fileName;
58 }
59
60 /**
61 * Sets the file name.
62 *
63 * @param fileName the new file name
64 */
65 public void setFileName(String fileName) {
66 this.fileName = fileName;
67 }
68
69 /**
70 * Gets the method name.
71 *
72 * @return the method name
73 */
74 public String getMethodName() {
75 return methodName;
76 }
77
78 /**
79 * Sets the method name.
80 *
81 * @param methodName the new method name
82 */
83 public void setMethodName(String methodName) {
84 this.methodName = methodName;
85 }
86
87 /**
88 * Gets the line number.
89 *
90 * @return the line number
91 */
92 public int getLineNumber() {
93 return lineNumber;
94 }
95
96 /**
97 * Sets the line number.
98 *
99 * @param lineNumber the new line number
100 */
101 public void setLineNumber(int lineNumber) {
102 this.lineNumber = lineNumber;
103 }
104
105 /**
106 * Checks if is native method.
107 *
108 * @return true, if is native method
109 */
110 public boolean isNativeMethod() {
111 return nativeMethod;
112 }
113
114 /**
115 * Sets the native method.
116 *
117 * @param nativeMethod the new native method
118 */
119 public void setNativeMethod(boolean nativeMethod) {
120 this.nativeMethod = nativeMethod;
121 }
122
123 }