public interface SourceSection
Source
of program code; supports
multiple modes of access to the text and its location. A special null subtype should be used for code that is not available from source, e.g language builtins.Modifier and Type | Method and Description |
---|---|
int |
getCharEndIndex()
Returns the index of the text position immediately following the last character in the
section.
|
int |
getCharIndex()
Returns the 0-based index of the first character in this section.
|
int |
getCharLength()
Returns the length of this section in characters.
|
java.lang.String |
getCode()
Returns text described by this section.
|
java.lang.String |
getIdentifier()
Returns terse text describing this source section, typically used for printing the section.
|
LineLocation |
getLineLocation()
Gets a representation of the first line of the section, suitable for a hash key.
|
java.lang.String |
getShortDescription()
Returns a short description of the source section, using just the file name, rather than its
full path.
|
Source |
getSource()
Representation of the source program that contains this section.
|
int |
getStartColumn()
Returns the 1-based column number of the first character in this section (inclusive).
|
int |
getStartLine()
Returns 1-based line number of the first character in this section (inclusive).
|
Source getSource()
int getStartLine()
LineLocation getLineLocation()
int getStartColumn()
int getCharIndex()
int getCharLength()
int getCharEndIndex()
java.lang.String getIdentifier()
java.lang.String getCode()
java.lang.String getShortDescription()