public class PovclipseParsedProject
extends java.lang.Object
PovclipseProjectProcessor
who is the only guy who writes this,
so he can have a pass on read-locks.Modifier and Type | Method and Description |
---|---|
PovClipseToken |
findToken(java.lang.String name)
Find this named token in the parsed tree
|
PovClipseToken |
getFileRoot(java.lang.String pathname) |
static PovclipseParsedProject |
getInstance()
Return the singleton instance of this class
|
protected 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)
|
PovClipseToken |
getTokenUnderCursor(int offset)
Return the narrowest token that is under the cursor in the current editor.
|
protected java.util.HashMap<java.lang.String,PovClipseToken> |
getTree()
Used by JUnit to examine the tree
|
void |
readLockTree() |
void |
readUnlockTree() |
protected void |
setRootKeyName(java.lang.String rootKeyName) |
protected void |
setTree(java.util.HashMap<java.lang.String,PovClipseToken> newTree) |
boolean |
treeWalker(PovClipseToken parent,
boolean walkIncludes,
TreeWalkerFunc twFunc)
Walk the parsed tree recursively, calling back for each token encountered.
|
void |
writeLockTree() |
void |
writeUnlockTree() |
public static PovclipseParsedProject getInstance()
public void readLockTree()
public void readUnlockTree()
public void writeLockTree()
public void writeUnlockTree()
protected PovClipseToken getRootToken()
protected void setRootKeyName(java.lang.String rootKeyName)
protected java.util.HashMap<java.lang.String,PovClipseToken> getTree()
protected void setTree(java.util.HashMap<java.lang.String,PovClipseToken> newTree)
public PovClipseToken getFileRoot(java.lang.String pathname)
public PovClipseToken getToken(java.lang.String filePath)
filePath
- public PovClipseToken findToken(java.lang.String name)
name
- The name of the token we are looking forpublic boolean treeWalker(PovClipseToken parent, boolean walkIncludes, TreeWalkerFunc twFunc)
parent
- The token to start walking at.walkIncludes
- true = follow include files, false = restricted to this filetwFunc
- The callback functionpublic PovClipseToken getTokenUnderCursor(int offset)
offset
- The position in the document