| java.lang.Object tide.editor.styler.SimpleCodeParser
SimpleCodeParser | public class SimpleCodeParser (Code) | | Recognize the comments, words and litterals in a java source code document
Very easy, it is just used to highlight quickly the code, NOT as a real parser.
A special mode allow to refresh only parts of the document.
Be careful not to start it within a comment or string. (NOT IMPLEMENTED)
This is very fast.
|
Inner Class :public static enum ItemType | |
Inner Class :public static class Item | |
SimpleCodeParser | public SimpleCodeParser(String doc)(Code) | | parses the whole document.
|
SimpleCodeParser | public SimpleCodeParser(String doc, int from, int to, int shift)(Code) | | to be called OUTSIDE of a comment.
Parameters: shift - is used to shift all produced items positions.Must be the doc start position in the original document, used in partial parsing |
getNextItem | public Item getNextItem()(Code) | | null if no more item |
|
|