public class Span extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
Span.Line
A line within a Source
|
| 构造器和说明 |
|---|
Span(Span start,
Span end) |
Span(String source) |
Span(String source,
int start,
int end) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getEnd()
Returns the index of the last character of this span plus 1.
|
Span.Line |
getLine()
Returns the line this span is on.
|
String |
getSource()
Returns the source string this span references.
|
int |
getStart()
Returns the index of the first character of this span.
|
String |
getText()
Returns the text referenced by this span
|
String |
toString() |
public String getText()
public int getStart()
public int getEnd()
public String getSource()
public Span.Line getLine()
Copyright © 2020–2021. All rights reserved.