public class PovclipseProjectScanner
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MARKER_NONCOMPILED |
static java.lang.String |
MARKER_SDL_ERROR |
Modifier and Type | Method and Description |
---|---|
PovClipseToken |
findToken(java.lang.String name)
Find this named token in the tree
|
static PovclipseProjectScanner |
getInstance()
Return the singleton instance of this class
|
PovClipseToken |
getRootToken()
Get the root token of the parsed tree
|
PovClipseToken |
getToken(java.lang.String filePath)
Get the root token of the named file (may be an include)
|
java.util.HashMap<java.lang.String,PovClipseToken> |
getTree() |
void |
markInclude() |
void |
rescan(java.lang.String fileName,
DirtyRegion dirtyRegion) |
void |
scanProject()
Primary entry point to scan and tokenize a project
|
void |
setActiveDocument(IniDocument iniDocument) |
boolean |
treeWalker(PovClipseToken parent,
boolean walkIncludes,
TreeWalkerFunc twFunc)
Walk the parsed tree recursively, calling back for each token encountered.
|
public static final java.lang.String MARKER_SDL_ERROR
public static final java.lang.String MARKER_NONCOMPILED
public static PovclipseProjectScanner getInstance()
public java.util.HashMap<java.lang.String,PovClipseToken> getTree()
public PovClipseToken getToken(java.lang.String filePath)
filePath
- public void setActiveDocument(IniDocument iniDocument)
public PovClipseToken getRootToken()
public PovClipseToken findToken(java.lang.String name)
name
- The name of the token we are looking forpublic void rescan(java.lang.String fileName, DirtyRegion dirtyRegion)
public void scanProject()
iniDocument
- The ini file to parsepublic void markInclude()
public boolean treeWalker(PovClipseToken parent, boolean walkIncludes, TreeWalkerFunc twFunc)
parent
- The token to start walking at.twFunc
- The callback function