com.ibm.wala.cast.tree
Interface CAstSourcePositionMap.Position

All Superinterfaces:
java.lang.Comparable
All Known Implementing Classes:
AbstractSourcePosition, LineNumberPosition, PolyglotJava2CAstTranslator.PolyglotSourcePosition
Enclosing interface:
CAstSourcePositionMap

public static interface CAstSourcePositionMap.Position
extends java.lang.Comparable

This interface encapsulates the source position of an ast node in its source file. Since different parsers record different degrees of source position information, any client of these Positions must be prepared to expect -1---symbolizing no information---to be returned by some or all of its accessors.


Method Summary
 int getFirstCol()
           
 int getFirstLine()
           
 int getFirstOffset()
           
 java.io.InputStream getInputStream()
           
 int getLastCol()
           
 int getLastLine()
           
 int getLastOffset()
           
 java.net.URL getURL()
           
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getFirstLine

int getFirstLine()

getLastLine

int getLastLine()

getFirstCol

int getFirstCol()

getLastCol

int getLastCol()

getFirstOffset

int getFirstOffset()

getLastOffset

int getLastOffset()

getURL

java.net.URL getURL()

getInputStream

java.io.InputStream getInputStream()
                                   throws java.io.IOException
Throws:
java.io.IOException