| org.netbeans.editor.ext.ExtSyntaxSupport org.netbeans.editor.ext.java.JavaSyntaxSupport
JavaSyntaxSupport | public class JavaSyntaxSupport extends ExtSyntaxSupport (Code) | | Support methods for syntax analyzes
author: Miloslav Metelka version: 1.00 |
Inner Class :public static class JavaDeclarationTokenProcessor implements DeclarationTokenProcessor,VariableMapTokenProcessor | |
AFTER_COMMA | final static int AFTER_COMMA(Code) | | |
AFTER_DOT | final static int AFTER_DOT(Code) | | |
AFTER_EQUAL | final static int AFTER_EQUAL(Code) | | |
AFTER_MATCHING_VARIABLE | final static int AFTER_MATCHING_VARIABLE(Code) | | |
AFTER_MATCHING_VARIABLE_LSB | final static int AFTER_MATCHING_VARIABLE_LSB(Code) | | |
AFTER_TYPE | final static int AFTER_TYPE(Code) | | |
AFTER_TYPE_LSB | final static int AFTER_TYPE_LSB(Code) | | |
AFTER_VARIABLE | final static int AFTER_VARIABLE(Code) | | |
INIT | final static int INIT(Code) | | |
checkCompletion | public int checkCompletion(JTextComponent target, String typedText, boolean visible)(Code) | | Check and possibly popup, hide or refresh the completion
|
createDeclarationTokenProcessor | protected DeclarationTokenProcessor createDeclarationTokenProcessor(String varName, int startPos, int endPos)(Code) | | |
createVariableMapTokenProcessor | protected VariableMapTokenProcessor createVariableMapTokenProcessor(int startPos, int endPos)(Code) | | |
getBracketSkipTokens | public TokenID[] getBracketSkipTokens()(Code) | | |
getClass | public JCClass getClass(int pos)(Code) | | Get the class that belongs to the given position
|
getClassFromName | public JCClass getClassFromName(String className, boolean searchByName)(Code) | | Get the class from name. The import sections are consulted to find the
proper package for the name. If the search in import sections fails the
method can ask the finder to search just by the given name.
Parameters: className - name to resolve. It can be either the full name or just thename without the package. Parameters: searchByName - if true and the resolving through the import sections failsthe finder is asked to find the class just by the given name |
getLastCommandSeparator | public int getLastCommandSeparator(int pos) throws BadLocationException(Code) | | Return the position of the last command separator before the given
position.
|
getUnknownImports | protected List getUnknownImports()(Code) | | Returns all imports that aren't in parser DB yet
|
isImported | public boolean isImported(JCClass cls)(Code) | | Returns true if the given class is in the import statement directly or
indirectly (package.name.*)
|
isStaticBlock | public boolean isStaticBlock(int pos)(Code) | | |
isUnknownImport | protected boolean isUnknownImport(String className)(Code) | | |
refreshClassInfo | protected void refreshClassInfo()(Code) | | |
refreshJavaImport | public void refreshJavaImport()(Code) | | |
Methods inherited from org.netbeans.editor.ext.ExtSyntaxSupport | protected Map buildGlobalVariableMap(int offset)(Code)(Java Doc) protected Map buildLocalVariableMap(int offset)(Code)(Java Doc) public int checkCompletion(JTextComponent target, String typedText, boolean visible)(Code)(Java Doc) protected DeclarationTokenProcessor createDeclarationTokenProcessor(String varName, int startPos, int endPos)(Code)(Java Doc) protected VariableMapTokenProcessor createVariableMapTokenProcessor(int startPos, int endPos)(Code)(Java Doc) protected void documentModified(DocumentEvent evt)(Code)(Java Doc) public int findDeclarationPosition(String varName, int varPos)(Code)(Java Doc) public int findGlobalDeclarationPosition(String varName, int varPos)(Code)(Java Doc) public int findLocalDeclarationPosition(String varName, int varPos)(Code)(Java Doc) public int[] findMatchingBlock(int offset, boolean simpleSearch) throws BadLocationException(Code)(Java Doc) public Object findType(String varName, int varPos)(Code)(Java Doc) protected TokenID[] getBracketSkipTokens()(Code)(Java Doc) public int[] getCommentBlocks(int startPos, int endPos) throws BadLocationException(Code)(Java Doc) public TokenID[] getCommentTokens()(Code)(Java Doc) public int[] getFunctionBlock(int[] identifierBlock) throws BadLocationException(Code)(Java Doc) public int[] getFunctionBlock(int offset) throws BadLocationException(Code)(Java Doc) public Map getGlobalVariableMap(int offset)(Code)(Java Doc) public Map getLocalVariableMap(int offset)(Code)(Java Doc) protected BracketFinder getMatchingBracketFinder(char bracketChar)(Code)(Java Doc) protected int getMethodStartPosition(int offset)(Code)(Java Doc) public int getRowLastValidChar(int offset) throws BadLocationException(Code)(Java Doc) public TokenItem getTokenChain(int startOffset, int endOffset) throws BadLocationException(Code)(Java Doc) public TokenID getTokenID(int offset) throws BadLocationException(Code)(Java Doc) public boolean isCommentOrWhitespace(int startPos, int endPos) throws BadLocationException(Code)(Java Doc) public boolean isPrepared()(Code)(Java Doc) public boolean isRowValid(int offset) throws BadLocationException(Code)(Java Doc) public boolean isWhitespaceToken(TokenID tokenID, char[] buffer, int offset, int tokenLength)(Code)(Java Doc)
|
|
|