| java.lang.Object javax.swing.text.Segment org.netbeans.editor.SyntaxSeg
SyntaxSeg | class SyntaxSeg extends Segment (Code) | | Encapsulation of a special static segment used by syntax scanners.
Unfortunately document cache cannot guarantee that its fragment(s) will hold
more than one character at the time so syntax scanning cannot be done by
finder. Instead all the syntax analyzes are done over the syntax segment's
data. Although it's shared across all instances of editors the loads into it
should be fast as they are done from cache fragments by arraycopy() method.
The syntax segment is separated into the slots because there can be more
scanning necessary at one time. All the scanning must be done
author: Miloslav Metelka version: 1.00 |
Inner Class :static class Slot extends Segment | |
Method Summary | |
static synchronized Slot | getFreeSlot() | static synchronized void | invalidate(BaseDocument doc, int pos) From this position on, the data in syntax segment must be marked invalid. | static synchronized void | releaseSlot(Slot slot) |
getFreeSlot | static synchronized Slot getFreeSlot()(Code) | | |
invalidate | static synchronized void invalidate(BaseDocument doc, int pos)(Code) | | From this position on, the data in syntax segment must be marked invalid.
|
releaseSlot | static synchronized void releaseSlot(Slot slot)(Code) | | |
|
|