public class StructuredTextOffsets extends Object
Constructor and Description |
---|
StructuredTextOffsets()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Marks that all entries in the offsets array are unused.
|
int |
getCount()
Gets the number of used entries in the offsets array.
|
int |
getOffset(int index)
Gets the value of a specified entry in the offsets array.
|
int[] |
getOffsets()
Gets all and only the used offset entries.
|
int |
getPrefixLength() |
void |
insertOffset(StructuredTextCharTypes charTypes,
int offset)
Inserts an offset value in the offset array so that the array
stays in ascending order.
|
void |
setPrefixLength(int prefLen)
Stores the prefix length
|
public int getPrefixLength()
public void setPrefixLength(int prefLen)
prefLen
- value assigned to the prefix lengthpublic int getCount()
public void clear()
public int getOffset(int index)
index
- the index of the entry of interest.public void insertOffset(StructuredTextCharTypes charTypes, int offset)
charTypes
- an object whose methods can be useful to the
handler.offset
- the value to insert.public int[] getOffsets()
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.