com.sun.tools.javac.model
Class JavacSourcePosition

java.lang.Object
  extended by com.sun.tools.javac.model.JavacSourcePosition

 class JavacSourcePosition
extends java.lang.Object

Implementation of model API SourcePosition based on javac internal state.

This is NOT part of any API supported by Sun Microsystems. 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.


Field Summary
(package private)  Position.LineMap lineMap
           
(package private)  int pos
           
(package private)  JavaFileObject sourcefile
           
 
Constructor Summary
JavacSourcePosition(JavaFileObject sourcefile, int pos, Position.LineMap lineMap)
           
 
Method Summary
 int getColumn()
           
 JavaFileObject getFile()
           
 int getLine()
           
 int getOffset()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sourcefile

final JavaFileObject sourcefile

pos

final int pos

lineMap

final Position.LineMap lineMap
Constructor Detail

JavacSourcePosition

JavacSourcePosition(JavaFileObject sourcefile,
                    int pos,
                    Position.LineMap lineMap)
Method Detail

getFile

public JavaFileObject getFile()

getOffset

public int getOffset()

getLine

public int getLine()

getColumn

public int getColumn()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object