@Internal public class SinglentonTextPiece extends TextPiece
_buf, EndComparator, StartComparator
Constructor and Description |
---|
SinglentonTextPiece(SinglentonTextPiece other) |
SinglentonTextPiece(java.lang.StringBuilder buffer) |
Modifier and Type | Method and Description |
---|---|
int |
bytesLength()
Returns the length, in bytes
(返回长度,以字节为单位)
|
int |
characterLength()
Returns the length, in characters
(返回长度,以字符为单位)
|
SinglentonTextPiece |
copy() |
int |
getCP()
Returns the character position we start at.
(返回我们开始的字符位置。)
|
int |
getEnd() |
int |
getStart() |
java.lang.String |
toString() |
adjustForDelete, equals, getPieceDescriptor, getRawBytes, getStringBuffer, getStringBuilder, hashCode, isUnicode, substring
compareTo, limitsAreEqual, setEnd, setStart
public SinglentonTextPiece(SinglentonTextPiece other)
public SinglentonTextPiece(java.lang.StringBuilder buffer)
public int bytesLength()
TextPiece
bytesLength
in class
TextPiece
public int characterLength()
TextPiece
characterLength
in class
TextPiece
public int getCP()
TextPiece
public int getEnd()
getEnd
in class
PropertyNode<TextPiece>
public int getStart()
getStart
in class
PropertyNode<TextPiece>
public SinglentonTextPiece copy()
copy
in interface
Duplicatable
(复制到界面 Duplicatable)
copy
in class
TextPiece
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.