|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.tools.apt.mirror.util.SourcePositionImpl
public class SourcePositionImpl
Implementation of SourcePosition
| Field Summary | |
|---|---|
private Position.LineMap |
linemap
|
private int |
pos
|
private JavaFileObject |
sourcefile
|
| Constructor Summary | |
|---|---|
SourcePositionImpl(JavaFileObject sourcefile,
int pos,
Position.LineMap linemap)
|
|
| Method Summary | |
|---|---|
int |
column()
Returns the column number of this position. |
java.io.File |
file()
Returns the source file containing this position. |
int |
getJavacPosition()
|
JavaFileObject |
getSource()
|
int |
line()
Returns the line number of this position. |
java.lang.String |
toString()
Returns a string representation of this position in the form "sourcefile:line", or "sourcefile" if no line number is available. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private JavaFileObject sourcefile
private int pos
private Position.LineMap linemap
| Constructor Detail |
|---|
public SourcePositionImpl(JavaFileObject sourcefile,
int pos,
Position.LineMap linemap)
| Method Detail |
|---|
public int getJavacPosition()
public JavaFileObject getSource()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.io.File file()
file in interface SourcePositionpublic int line()
line in interface SourcePositionpublic int column()
column in interface SourcePosition
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||