public interface CIVLSource
A CIVLSource object represents a range of text in a source file.
-
Method Summary
Modifier and TypeMethodDescriptionReturns location information only (not actual source text).getSummary(boolean isException) Returns summary of location and text.booleanChecks if this source is some system source not from input program.voidprint(PrintStream out) Prints the source to print stream.toString()Returns a human-readable string representation of this range of source data.
-
Method Details
-
toString
String toString()Returns a human-readable string representation of this range of source data. -
print
Prints the source to print stream.- Parameters:
out- a PrintStream
-
getLocation
String getLocation()Returns location information only (not actual source text). For example "foo.c:127.4-128.1". -
getSummary
Returns summary of location and text.- Parameters:
isException- true iff want to print the detailed information for a thrown exception.- Returns:
-
isSystemSource
boolean isSystemSource()Checks if this source is some system source not from input program.- Returns:
- true iff this source is some system source not from input program.
-
getFileName
String getFileName() -
getContent
String getContent() -
getAbsoluteFilePath
String getAbsoluteFilePath()
-