| java.lang.Object org.netbeans.editor.ext.java.JavaImport
JavaImport | public class JavaImport implements TokenProcessor(Code) | | Mapping of colorings to particular token types
author: Miloslav Metelka version: 1.00 |
Method Summary | |
public void | documentModifiedAtPosition(int offset) Optimalization for document parsing. | public int | eot(int offset) | public JCClass | getClazz(String className) | protected List | getUnknownImports() | protected void | importStatementFound(int importStartPos, int importEndPos, String importExp, boolean starAtEnd) | protected void | init() | public boolean | isImported(JCClass cls) | public boolean | isUnknownImport(String className) | public void | nextBuffer(char[] buffer, int offset, int len, int startPos, int preScan, boolean lastBuffer) | protected void | packageStatementFound(int packageStartPos, int packageEndPos, String packageExp) | public boolean | token(TokenID tokenID, TokenContextPath tokenContextPath, int tokenOffset, int tokenLen) | public synchronized void | update(BaseDocument doc) |
JavaImport | public JavaImport()(Code) | | |
documentModifiedAtPosition | public void documentModifiedAtPosition(int offset)(Code) | | Optimalization for document parsing. The owner of JavaImport instance can
call this function to inform the JavaImport where the change has occured
in the document. If this function is not called, the whole document is
parsed. If it is, the parsing is done only when the import section of the
document is being modified.
Parameters: offset - offset of the change in document |
eot | public int eot(int offset)(Code) | | |
getUnknownImports | protected List getUnknownImports()(Code) | | Returns all imports that aren't in parser DB yet
|
importStatementFound | protected void importStatementFound(int importStartPos, int importEndPos, String importExp, boolean starAtEnd)(Code) | | |
init | protected void init()(Code) | | |
isImported | public boolean isImported(JCClass cls)(Code) | | Returns true if the given class is in the import statement directly or
indirectly (package.name.*)
|
isUnknownImport | public boolean isUnknownImport(String className)(Code) | | Returns true if className is in import, but in a package, that hasn't
updated DB
|
nextBuffer | public void nextBuffer(char[] buffer, int offset, int len, int startPos, int preScan, boolean lastBuffer)(Code) | | |
packageStatementFound | protected void packageStatementFound(int packageStartPos, int packageEndPos, String packageExp)(Code) | | |
|
|