01: package org.makumba.analyser;
02:
03: import java.io.Serializable;
04: import java.util.Map;
05:
06: import org.makumba.analyser.engine.JspParseData;
07: import org.makumba.analyser.engine.SyntaxPoint;
08:
09: /**
10: * A composite object passed to the analyzers.
11: *
12: * @author Cristian Bogdan
13: */
14: public class TagData implements Serializable {
15: private static final long serialVersionUID = 1L;
16:
17: /** The parse data where this TagData was produced */
18: public JspParseData parseData;
19:
20: /** Name of the tag */
21: public String name;
22:
23: /** Number of the node in the graph of tags of the page **/
24: public int nodeNumber;
25:
26: /** Tag attributes */
27: public Map<String, String> attributes;
28:
29: /** Tag object, if one is created by the analyzer */
30: public Object tagObject;
31:
32: /** The syntax points where the whole thing begins and ends */
33: public SyntaxPoint start, end;
34:
35: public static final String TAG_DATA_CACHE = "org.makumba.tagData";
36:
37: public SyntaxPoint getStart() {
38: return start;
39: }
40:
41: public Object getTagObject() {
42: return tagObject;
43: }
44:
45: public SyntaxPoint getEnd() {
46: return end;
47: }
48:
49: }
|