Class SourceContextLoader.Line
java.lang.Object
software.amazon.smithy.model.loader.sourcecontext.SourceContextLoader.Line
- Enclosing interface:
- SourceContextLoader
A pair of line numbers to the contents of lines.
-
Constructor Details
-
Line
-
-
Method Details
-
getLineNumber
public int getLineNumber()Get the line number of the line, starting at 1.- Returns:
- Returns the 1-based line number.
-
getContent
Returns the content as a CharSequence.CharSequence is used here to allow implementations to potentially use things like CharBuffer slices.
- Returns:
- The content of the line.
-
hashCode
public int hashCode() -
equals
-
toString
-