37 private int leakLineNumber; |
37 private int leakLineNumber; |
38 |
38 |
39 /** Flag to inform that is results created for urel builds. */ |
39 /** Flag to inform that is results created for urel builds. */ |
40 private boolean urelBuild = false; |
40 private boolean urelBuild = false; |
41 |
41 |
42 |
|
43 /** |
42 /** |
44 * Gets file name. |
43 * Gets file name. |
45 * |
44 * |
46 * @return File name |
45 * @return File name |
47 */ |
46 */ |
48 public final String getFileName() { |
47 public final String getFileName() { |
49 return this.fileName; |
48 return this.fileName; |
50 } |
49 } |
51 |
50 |
52 /** |
51 /** |
53 * Gets function name. |
52 * Gets function name. |
54 * |
53 * |
55 * @return Function name |
54 * @return Function name |
56 */ |
55 */ |
57 public final String getFunctionName() { |
56 public final String getFunctionName() { |
58 return this.functionName; |
57 return this.functionName; |
59 } |
58 } |
60 |
59 |
61 /** |
60 /** |
62 * Gets leak line number. |
61 * Gets leak line number. |
63 * |
62 * |
64 * @return Leak line number |
63 * @return Leak line number |
65 */ |
64 */ |
66 public final int getLeakLineNumber() { |
65 public final int getLeakLineNumber() { |
67 return this.leakLineNumber; |
66 return this.leakLineNumber; |
68 } |
67 } |
69 |
68 |
70 /** |
69 /** |
71 * Is results created for the urel build. |
70 * Is results created for the urel build. |
72 * |
71 * |
73 * @return True if results are created for the urel build otherwise false |
72 * @return True if results are created for the urel build otherwise false |
74 */ |
73 */ |
75 public final boolean isUrelBuild() { |
74 public final boolean isUrelBuild() { |
76 return urelBuild; |
75 return urelBuild; |
77 } |
76 } |
78 |
77 |
79 /** |
78 /** |
80 * Sets cpp file name which contains memory leaks. |
79 * Sets cpp file name which contains memory leaks. |
81 * |
80 * |
82 * @param newFileName |
81 * @param newFileName |
83 * File name |
82 * File name |
84 */ |
83 */ |
85 public final void setFileName(final String newFileName) { |
84 public final void setFileName(final String newFileName) { |
86 this.fileName = newFileName; |
85 this.fileName = newFileName; |
87 } |
86 } |
88 |
87 |
89 /** |
88 /** |
90 * Sets function name. |
89 * Sets function name. |
91 * |
90 * |
92 * @param newFunctionName |
91 * @param newFunctionName |
93 * Function name |
92 * Function name |
94 */ |
93 */ |
95 public final void setFunctionName(final String newFunctionName) { |
94 public final void setFunctionName(final String newFunctionName) { |
96 this.functionName = newFunctionName; |
95 this.functionName = newFunctionName; |
97 } |
96 } |
98 |
97 |
99 /** |
98 /** |
100 * Sets leak line number. |
99 * Sets leak line number. |
101 * |
100 * |
102 * @param newLeakLineNumber |
101 * @param newLeakLineNumber |
103 * Leak line number |
102 * Leak line number |
104 */ |
103 */ |
105 public final void setLeakLineNumber(final int newLeakLineNumber) { |
104 public final void setLeakLineNumber(final int newLeakLineNumber) { |
106 this.leakLineNumber = newLeakLineNumber; |
105 this.leakLineNumber = newLeakLineNumber; |
107 } |
106 } |
108 |
107 |
109 /** |
108 /** |
110 * Sets urel build flag. |
109 * Sets urel build flag. |
111 * |
110 * |
112 * @param build |
111 * @param build |
113 * Is project built with urel command |
112 * Is project built with urel command |
114 */ |
113 */ |
115 public final void setUrelBuild(final boolean build) { |
114 public final void setUrelBuild(final boolean build) { |
116 urelBuild = build; |
115 urelBuild = build; |
117 } |
116 } |
118 |
117 |
119 /** |
118 /** |
120 * Checks that at least one needed information is available |
119 * Checks that at least one needed information is available |
121 * |
120 * |
122 * @return False if at least one needed information is available(not empty) otherwise |
121 * @return False if at least one needed information is available(not empty) |
123 * True |
122 * otherwise True |
124 */ |
123 */ |
125 public boolean isEmpty() { |
124 public boolean isEmpty() { |
126 if ( !checkData() && (fileName == null || ("").equals(fileName)) |
125 if (!checkData() && (fileName == null || ("").equals(fileName)) |
127 && (functionName == null || ("").equals(functionName) ) ) { |
126 && (functionName == null || ("").equals(functionName))) { |
128 return true; |
127 return true; |
129 } |
128 } |
130 return false; |
129 return false; |
131 } |
130 } |
132 } |
131 } |