1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
package org.eclipse.photran.internal.core.f95modelparser;
/**
* Common super-interface for <code>Token</code>s and <code>NonTreeToken</code>s, essentially,
* anything that will be printed by the <code>SourcePrinter</code> when source code is reproduced
* from a parse tree and <code>Presentation</code>.
*
* @author joverbey
*/
public interface IPresentationBlock
{
/**
* Returns the filename in which the token occurred
*/
public abstract String getFilename();
/**
* Sets the filename in which the token occurred
*/
public abstract void setFilename(String value);
/**
* Returns the line number on which the token starts (1=first line, 2=second, etc.)
*/
public abstract int getStartLine();
/**
* Sets the line number on which the token starts (1=first line, 2=second, etc.)
*/
public abstract void setStartLine(int value);
/**
* Returns the column number on which the token starts (1=first column, 2=second, etc.)
*/
public abstract int getStartCol();
/**
* Sets the column number on which the token starts (1=first column, 2=second, etc.)
*/
public abstract void setStartCol(int value);
/**
* Returns the line number on which the token ends (1=first line, 2=second, etc.)
*/
public abstract int getEndLine();
/**
* Sets the line number on which the token ends (1=first line, 2=second, etc.)
*/
public abstract void setEndLine(int value);
/**
* Returns the column number on which the token ends (1=first column, 2=second, etc.)
*/
public abstract int getEndCol();
/**
* Sets the column number on which the token ends (1=first column, 2=second, etc.)
*/
public abstract void setEndCol(int value);
/**
* Returns the start of the token, as a character offset in the file 0=first character,
* 1=second, etc.
*/
public abstract int getOffset();
/**
* Sets the start of the token, as a character offset in the file 0=first character, 1=second,
* etc.
*/
public abstract void setOffset(int value);
/**
* Returns the length of the token text, in characters
*/
public abstract int getLength();
/**
* Sets the length of the token text, in characters
*/
public abstract void setLength(int value);
/**
* Returns the token text
*/
public abstract String getText();
/**
* Sets the token text
*/
public abstract void setText(String value);
/**
* Double-dispatch method for visiting all types of <code>IPresentationBlocks</code>
*/
public abstract void visitUsing(IPresentationBlockVisitor v);
}
|