|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.util.source.SourceCodeLocation
public class SourceCodeLocation
Provides information about a source code location.
Nested Class Summary | |
---|---|
static class |
SourceCodeLocation.Position Defines a position in the source code. |
Field Summary | |
---|---|
static SourceCodeLocation |
UNKNOWN_LOCATION Defines an unknown location. |
Constructor Summary | |
---|---|
SourceCodeLocation(SourceCodeLocation.Position start, SourceCodeLocation.Position end) Default constructor. |
Method Summary | |
---|---|
SourceCodeLocation.Position |
getEnd() Returns the end position of the source code location. |
SourceCodeLocation.Position |
getStart() Returns the start position of the source code location. |
boolean |
isKnown() Checks if the location is known. |
String |
toString() Returns the string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final SourceCodeLocation UNKNOWN_LOCATION
Constructor Detail |
---|
public SourceCodeLocation(SourceCodeLocation.Position start, SourceCodeLocation.Position end) throws IllegalArgumentException
start
- the start position of the source code location.
end
- the end position of the source code location.
IllegalArgumentException
- if
start
or
end
are
null
or
start
position is greater than the
end
position.
Method Detail |
---|
public SourceCodeLocation.Position getStart()
public SourceCodeLocation.Position getEnd()
public boolean isKnown()
true
if it is a known location with valid content,
false
if it is an unknown location identified by
UNKNOWN_LOCATION
.
public String toString()
toString
in class
Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |