类 Span
java.lang.Object
org.ssssssss.script.parsing.Span
A span within a source string denoted by start and end index, with the latter being exclusive.
-
嵌套类概要
嵌套类 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleanintgetEnd()Returns the index of the last character of this span plus 1.getLine()Returns the line this span is on.Returns the source string this span references.intgetStart()Returns the index of the first character of this span.getText()Returns the text referenced by this spaninthashCode()toString()
-
构造器详细资料
-
Span
-
Span
-
Span
-
-
方法详细资料
-
getText
Returns the text referenced by this span -
getStart
public int getStart()Returns the index of the first character of this span. -
getEnd
public int getEnd()Returns the index of the last character of this span plus 1. -
getSource
Returns the source string this span references. -
toString
-
getLine
Returns the line this span is on. Does not return a correct result for spans across multiple lines. -
equals
-
hashCode
public int hashCode()
-