Methods Summary |
---|
public void | adjustForDelete(int start, int length)Adjust for a deletion that can span multiple PropertyNodes.
int end = start + length;
if (_cpEnd > start)
{
if (_cpStart < end)
{
_cpEnd = end >= _cpEnd ? start : _cpEnd - length;
_cpStart = Math.min(start, _cpStart);
}
else
{
_cpEnd -= length;
_cpStart -= length;
}
}
|
public java.lang.Object | clone()
return super.clone();
|
public int | compareTo(java.lang.Object o)Used for sorting in collections.
int cpEnd = ((PropertyNode)o).getEnd();
if(_cpEnd == cpEnd)
{
return 0;
}
else if(_cpEnd < cpEnd)
{
return -1;
}
else
{
return 1;
}
|
public boolean | equals(java.lang.Object o)
if (limitsAreEqual(o))
{
Object testBuf = ((PropertyNode)o)._buf;
if (testBuf instanceof byte[] && _buf instanceof byte[])
{
return Arrays.equals((byte[])testBuf, (byte[])_buf);
}
return _buf.equals(testBuf);
}
return false;
|
public int | getEnd()
return _cpEnd;
|
public int | getStart()
return _cpStart;
|
protected boolean | limitsAreEqual(java.lang.Object o)
return ((PropertyNode)o).getStart() == _cpStart &&
((PropertyNode)o).getEnd() == _cpEnd;
|
public void | setEnd(int end)
_cpEnd = end;
|
public void | setStart(int start)
_cpStart = start;
|