@Internal public abstract class PropertyNode<T extends PropertyNode<T>> extends java.lang.Object implements java.lang.Comparable<T>, Duplicatable
BytePropertyNode
between you and this.
(表示树中用于存储内容属性的轻量级节点。这仅适用于字符。对于开头和结尾不在字符中的少数奇怪情况(例如 PAPX 和 CHPX),请在您和 this 之间使用 BytePropertyNode。)
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
_buf |
static java.util.Comparator<PropertyNode<?>> |
EndComparator |
static java.util.Comparator<PropertyNode<?>> |
StartComparator |
Modifier | Constructor and Description |
---|---|
protected |
PropertyNode(int fcStart, int fcEnd, java.lang.Object buf) |
protected |
PropertyNode(PropertyNode<T> other) |
Modifier and Type | Method and Description |
---|---|
void |
adjustForDelete(int start, int length)
Adjust for a deletion that can span multiple PropertyNodes.
(调整可以跨越多个 PropertyNode 的删除。)
|
int |
compareTo(T o)
Used for sorting in collections.
(用于在集合中排序。)
|
abstract PropertyNode<?> |
copy() |
boolean |
equals(java.lang.Object o) |
int |
getEnd() |
int |
getStart() |
int |
hashCode() |
protected boolean |
limitsAreEqual(java.lang.Object o) |
void |
setEnd(int end) |
void |
setStart(int start) |
public static final java.util.Comparator<PropertyNode<?>> EndComparator
public static final java.util.Comparator<PropertyNode<?>> StartComparator
protected java.lang.Object _buf
protected PropertyNode(PropertyNode<T> other)
protected PropertyNode(int fcStart, int fcEnd, java.lang.Object buf)
fcStart
- The start of the text for this property, in characters.
(fcStart - 此属性的文本的开头,以字符为单位。)
fcEnd
- The end of the text for this property, in characters.
(fcEnd - 此属性的文本结尾,以字符为单位。)
buf
- FIXME: Old documentation is: "grpprl The property description in compressed form."
(buf - FIXME:旧文档是:“grpprl 压缩形式的属性描述。”)
public int getStart()
public void setStart(int start)
public int getEnd()
public void setEnd(int end)
public void adjustForDelete(int start, int length)
protected boolean limitsAreEqual(java.lang.Object o)
public int hashCode()
hashCode
in class
java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class
java.lang.Object
public abstract PropertyNode<?> copy()
copy
in interface
Duplicatable
(复制到界面 Duplicatable)
public int compareTo(T o)
compareTo
in interface
java.lang.Comparable<T extends PropertyNode<T>>
(接口 java.lang.Comparable 中的 compareTo
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.