public class SourceLocation extends Object implements Comparable<SourceLocation>
| Constructor and Description |
|---|
SourceLocation(int linenumber,
int columnnumber,
String filename)
Constructs a new source location.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(SourceLocation e)
Compares source locations first by file name, then by line number, and finally by column number.
|
boolean |
equals(Object obj)
Checks whether this and the given object represent the same source location.
|
int |
getColumnNumber()
Returns the source column number.
|
String |
getFileName()
Returns the source file name.
|
int |
getLineNumber()
Returns the source line number.
|
int |
hashCode()
Returns a hash code for this object.
|
String |
toString()
Returns a string description of the source information associated with this node.
|
public SourceLocation(int linenumber,
int columnnumber,
String filename)
public int compareTo(SourceLocation e)
compareTo in interface Comparable<SourceLocation>public boolean equals(Object obj)
public int getColumnNumber()
public String getFileName()
public int getLineNumber()
public int hashCode()
Copyright © 2012 Aarhus University