Class SourcePositionImpl
java.lang.Object
gw.gosudoc.com.sun.tools.javadoc.main.SourcePositionImpl
- All Implemented Interfaces:
SourcePosition
Deprecated.
A source position: filename, line number, and column number.
This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
- Since:
- J2SE1.4
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) FileObject
Deprecated.(package private) com.sun.tools.javac.util.Position.LineMap
Deprecated.(package private) int
Deprecated. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
SourcePositionImpl
(FileObject file, int position, com.sun.tools.javac.util.Position.LineMap lineMap) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionint
column()
Deprecated.The column in the source file.file()
Deprecated.The source file.Deprecated.The source file.int
line()
Deprecated.The line in the source file.static SourcePosition
make
(FileObject file, int pos, com.sun.tools.javac.util.Position.LineMap lineMap) Deprecated.toString()
Deprecated.Convert the source position to the form "Filename:line".
-
Field Details
-
filename
FileObject filenameDeprecated. -
position
int positionDeprecated. -
lineMap
com.sun.tools.javac.util.Position.LineMap lineMapDeprecated.
-
-
Constructor Details
-
SourcePositionImpl
private SourcePositionImpl(FileObject file, int position, com.sun.tools.javac.util.Position.LineMap lineMap) Deprecated.
-
-
Method Details
-
file
Deprecated.The source file. Returns null if no file information is available.- Specified by:
file
in interfaceSourcePosition
- Returns:
- the source file as a File.
-
fileObject
Deprecated.The source file. Returns null if no file information is available. -
line
public int line()Deprecated.The line in the source file. The first line is numbered 1; 0 means no line number information is available.- Specified by:
line
in interfaceSourcePosition
- Returns:
- the line number in the source file as an integer.
-
column
public int column()Deprecated.The column in the source file. The first column is numbered 1; 0 means no column information is available. Columns count characters in the input stream; a tab advances the column number to the next 8-column tab stop.- Specified by:
column
in interfaceSourcePosition
- Returns:
- the column on the source line as an integer.
-
make
public static SourcePosition make(FileObject file, int pos, com.sun.tools.javac.util.Position.LineMap lineMap) Deprecated. -
toString
Deprecated.Description copied from interface:SourcePosition
Convert the source position to the form "Filename:line".- Specified by:
toString
in interfaceSourcePosition
- Overrides:
toString
in classObject
-