1 package net.sf.plb4jedit.plb;
2
3 /***
4 * Represents a procars label or routine. Gives access to the source (absolute path of program or include
5 * where the label is defined) and the lineno and the label name.
6 * <br/>
7 * TODO: in parsing class: fill documentation properly
8 * @author Peter Schaefer
9 */
10 public class Label {
11 private String source;
12 private int lineno;
13 private String label;
14 private String doc;
15
16 private Label() {
17 }
18
19 public Label(String source, int lineno, String label, String doc) {
20 this.source = source;
21 this.lineno = lineno;
22 this.label = label;
23 this.doc = doc;
24 }
25
26 /***
27 * @return
28 */
29 public String getDoc() {
30 return doc;
31 }
32
33 /***
34 * @return
35 */
36 public String getLabel() {
37 return label;
38 }
39
40 /***
41 * @return
42 */
43 public int getLineno() {
44 return lineno;
45 }
46
47 /***
48 * @return
49 */
50 public String getSource() {
51 return source;
52 }
53
54 public String toString() {
55 return source + ":" + lineno + ":" + label;
56 }
57
58 }
This page was automatically generated by Maven