01: /*
02: * Created on Sep 30, 2004
03: *
04: * TODO To change the template for this generated file go to
05: * Window - Preferences - Java - Code Style - Code Templates
06: */
07: package org.hammurapi.inspectors.metrics;
08:
09: import com.pavelvlasov.jsel.LanguageElement;
10:
11: /**
12: * @author Johannes
13: *
14: */
15: public class StringVariable {
16:
17: public StringVariable(LanguageElement _langElement,
18: StringBuffer _varValue, String _name, String _type,
19: String _className, String _classFcn) {
20: super ();
21: langElement = _langElement;
22: varValue = _varValue;
23: name = _name;
24: type = _type;
25: className = _className;
26: if (_classFcn != null) {
27: classFcn = _classFcn;
28: }
29: }
30:
31: public LanguageElement langElement = null;
32: public String className = "<undefined>";
33: public String classFcn = "<undefined>";
34: public String name = "<undefined>";
35: public StringBuffer varValue = new StringBuffer();
36: public String type = "<undefined>";
37:
38: public String toString() {
39: return name + " <-- " + varValue;
40: }
41: }
|