|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.javalanglevels.SourceInfo
public final class SourceInfo
A simple tuple class to represent source location for pieces of the AST.
| Field Summary | |
|---|---|
static SourceInfo |
NO_INFO
|
static SourceInfo |
NONE
A constant is code generated by javacc that belongs here!. |
static SourceInfo |
TEST_0
|
static SourceInfo |
TEST_1
|
| Constructor Summary | |
|---|---|
SourceInfo(java.io.File file,
int startLine,
int startColumn,
int endLine,
int endColumn)
Constructs a SourceInfo, given a value for the file and the coordinates. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
All fields must match for these to be equal |
int |
getEndColumn()
|
int |
getEndLine()
|
java.io.File |
getFile()
|
int |
getStartColumn()
|
int |
getStartLine()
|
int |
hashCode()
Implementation of hashCode that is consistent with equals. |
static SourceInfo |
make(java.lang.String qualifiedClassName)
Build a SourceInfo corresponding to the specified class name, with -1 as the value for row, column, start, finish. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final SourceInfo NONE
public static final SourceInfo NO_INFO
public static final SourceInfo TEST_0
public static final SourceInfo TEST_1
| Constructor Detail |
|---|
public SourceInfo(java.io.File file,
int startLine,
int startColumn,
int endLine,
int endColumn)
| Method Detail |
|---|
public final java.io.File getFile()
public final int getStartLine()
public final int getStartColumn()
public final int getEndLine()
public final int getEndColumn()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic final int hashCode()
hashCode in class java.lang.Objectpublic static SourceInfo make(java.lang.String qualifiedClassName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||