public class IntBasedStorage extends java.lang.Object implements DataStorage
IElementType
index and state of the lexer for segment.Constructor and Description |
---|
IntBasedStorage() |
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) |
public void setData(int segmentIndex, int data)
setData
in interface DataStorage
public void remove(int startIndex, int endIndex, int mySegmentCount)
remove
in interface DataStorage
public void replace(DataStorage storage, int startOffset, int len)
replace
in interface DataStorage
public void insert(DataStorage storageToInsert, int startIndex, int segmentCountToInsert, int segmentCount)
insert
in interface DataStorage
public int getData(int index)
getData
in interface DataStorage
public int packData(IElementType tokenType, int state, boolean isRestartableState)
packData
in interface DataStorage
public int unpackStateFromData(int data)
unpackStateFromData
in interface DataStorage
public IElementType unpackTokenFromData(int data)
unpackTokenFromData
in interface DataStorage
public DataStorage copy()
copy
in interface DataStorage
public DataStorage createStorage()
createStorage
in interface DataStorage