| org.netbeans.editor.ext.html.HTMLSyntaxSupport
HTMLSyntaxSupport | public class HTMLSyntaxSupport extends ExtSyntaxSupport implements InvalidateListener(Code) | | Support methods for HTML document syntax analyzes
author: Petr Nejedly author: Marek Fukala |
HTMLSyntaxSupport | public HTMLSyntaxSupport(BaseDocument doc)(Code) | | Creates new HTMLSyntaxSupport
|
dtdInvalidated | public void dtdInvalidated(InvalidateEvent evt)(Code) | | Reset our cached DTD if no longer valid.
|
findMatchingBlock | public int[] findMatchingBlock(int offset, boolean simpleSearch) throws BadLocationException(Code) | | Find matching tags with the current position.
Parameters: offset - position of the starting tag Parameters: simple - whether the search should skip comment and possibly other areas.This can be useful when the speed is critical, because the simplesearch is faster. array of integers containing starting and ending positionof the block in the document. Null is returned if there'sno matching block. |
getAutocompletedEndTag | public List getAutocompletedEndTag(int offset)(Code) | | |
getElementChain | public SyntaxElement getElementChain(int offset) throws BadLocationException(Code) | | Returns SyntaxElement instance for block of tokens, which is either
surrounding given offset, or is just after the offset.
Parameters: offset - offset in document where to search for SyntaxElement SyntaxElement surrounding or laying after the offsetor null if there is no element there (end of document) |
getPreviousElement | public SyntaxElement getPreviousElement(int offset) throws BadLocationException(Code) | | The way how to get previous SyntaxElement in document. It is not intended
for direct usage, and thus is not public. Usually, it is called from
SyntaxElement's method getPrevious()
|
isSingletonTag | public boolean isSingletonTag(TokenSequence ts)(Code) | | Finds out whether the given
TokenSequence 's actual token is a part of a singleton tag (e.g. ).
true is the token is a part of singleton tag |
isTag | public static boolean isTag(Token t)(Code) | | |
isTagButNotSymbol | public static boolean isTagButNotSymbol(Token t)(Code) | | |
|
|