| 
The Meta-Environment API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttoolbus.parsercup.PositionInformation
public class PositionInformation
Like the name implies, this class contains position information (filename + begin and end line / column).
| Field Summary | |
|---|---|
private  int | 
beginColumn
 | 
private  int | 
beginLine
 | 
private  int | 
endColumn
 | 
private  int | 
endLine
 | 
private  java.lang.String | 
fileName
 | 
private  int | 
offset
 | 
| Constructor Summary | |
|---|---|
PositionInformation(java.lang.String fileName,
                                       int offset,
                                       int beginLine,
                                       int beginColumn,
                                       int endLine,
                                       int endColumn)
Constructor.  | 
|
| Method Summary | |
|---|---|
 int | 
getBeginColumn()
Returns the begin column of the position.  | 
 int | 
getBeginLine()
Returns the begin line of the position.  | 
 int | 
getEndColumn()
Retuns the end column of the position.  | 
 int | 
getEndLine()
Retuns the end line of the position.  | 
 java.lang.String | 
getFileName()
Returns the name of the file this position is in.  | 
 int | 
getOffset()
 | 
 java.lang.String | 
toString()
Returns the serial representation of this position in the following format: filename : beginline,begincolumn - endline,endcolumn  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
private final java.lang.String fileName
private final int offset
private final int beginLine
private final int beginColumn
private final int endLine
private final int endColumn
| Constructor Detail | 
|---|
public PositionInformation(java.lang.String fileName,
                           int offset,
                           int beginLine,
                           int beginColumn,
                           int endLine,
                           int endColumn)
fileName - The name of the file the position is in.beginLine - The begin line.beginColumn - The begin column.endLine - The end line.endColumn - The end column.| Method Detail | 
|---|
public int getOffset()
public java.lang.String getFileName()
public int getBeginLine()
public int getBeginColumn()
public int getEndLine()
public int getEndColumn()
public java.lang.String toString()
toString in class java.lang.Object
  | 
The Meta-Environment API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||