|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkoala.dynamicjava.tree.SourceInfo
public final class SourceInfo
A simple tuple class to represent source location.
| Nested Class Summary | |
|---|---|
static interface |
SourceInfo.Wrapper
|
| Field Summary | |
|---|---|
static SourceInfo |
NONE
|
| Method Summary | |
|---|---|
int |
compareTo(SourceInfo that)
|
boolean |
equals(Object obj)
Method for determining the equality of two source locations - overriden from Object The method for determining if two source locations are equal is as follows: The two Files must be equal using the File.equals method The integers for the corresponding Start/End Line/Column must be identical |
static SourceInfo |
extend(SourceInfo.Wrapper wrapper,
int endLine,
int endColumn)
|
static SourceInfo |
extend(SourceInfo si,
int endLine,
int endColumn)
|
int |
getEndColumn()
|
int |
getEndLine()
|
File |
getFile()
May be null, if the source file is unknown. |
String |
getFilename()
Get the file's name, or "(no file)". |
int |
getStartColumn()
|
int |
getStartLine()
|
int |
hashCode()
|
static SourceInfo |
point(File f,
int line,
int column)
|
static SourceInfo |
prepend(int startLine,
int startColumn,
SourceInfo.Wrapper wrapper)
|
static SourceInfo |
prepend(int startLine,
int startColumn,
SourceInfo si)
|
static SourceInfo |
range(File f,
int startLine,
int startColumn,
int endLine,
int endColumn)
|
static SourceInfo |
span(SourceInfo.Wrapper first,
SourceInfo.Wrapper second)
|
static SourceInfo |
span(SourceInfo.Wrapper first,
SourceInfo second)
|
static SourceInfo |
span(SourceInfo first,
SourceInfo.Wrapper second)
|
static SourceInfo |
span(SourceInfo first,
SourceInfo second)
|
String |
toString()
Returns a string representation of the source information. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final SourceInfo NONE
| Method Detail |
|---|
public static SourceInfo point(File f,
int line,
int column)
public static SourceInfo range(File f,
int startLine,
int startColumn,
int endLine,
int endColumn)
public static SourceInfo extend(SourceInfo si,
int endLine,
int endColumn)
public static SourceInfo extend(SourceInfo.Wrapper wrapper,
int endLine,
int endColumn)
public static SourceInfo prepend(int startLine,
int startColumn,
SourceInfo si)
public static SourceInfo prepend(int startLine,
int startColumn,
SourceInfo.Wrapper wrapper)
public static SourceInfo span(SourceInfo first,
SourceInfo second)
public static SourceInfo span(SourceInfo first,
SourceInfo.Wrapper second)
public static SourceInfo span(SourceInfo.Wrapper first,
SourceInfo second)
public static SourceInfo span(SourceInfo.Wrapper first,
SourceInfo.Wrapper second)
public File getFile()
public String getFilename()
"(no file)".
public int getStartLine()
public int getStartColumn()
public int getEndLine()
public int getEndColumn()
public String toString()
toString in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic int compareTo(SourceInfo that)
compareTo in interface Comparable<SourceInfo>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||