public interface DataStorage
SegmentArrayWithData
.
Encapsulates segment data logic processing.Modifier and Type | Method and Description |
---|---|
DataStorage |
copy() |
DataStorage |
createStorage() |
int |
getData(int index) |
void |
insert(DataStorage storageToInsert,
int startIndex,
int segmentCountToInsert,
int segmentCount) |
int |
packData(IElementType tokenType,
int state,
boolean isRestartableState) |
void |
remove(int startIndex,
int endIndex,
int mySegmentCount) |
void |
replace(DataStorage storage,
int startOffset,
int len) |
void |
setData(int segmentIndex,
int data) |
int |
unpackStateFromData(int data) |
IElementType |
unpackTokenFromData(int data) |
void setData(int segmentIndex, int data)
void remove(int startIndex, int endIndex, int mySegmentCount)
void replace(DataStorage storage, int startOffset, int len)
void insert(DataStorage storageToInsert, int startIndex, int segmentCountToInsert, int segmentCount)
int getData(int index)
int packData(IElementType tokenType, int state, boolean isRestartableState)
int unpackStateFromData(int data)
IElementType unpackTokenFromData(int data)
DataStorage copy()
DataStorage createStorage()