ide
Class ProjectViewFactory
java.lang.Object
|
+--ide.ProjectViewFactory
- public class ProjectViewFactory
- extends java.lang.Object
|
Field Summary |
(package private) static boolean |
__debug__
|
private java.lang.String |
fileName
|
private boolean |
isValid
|
private javax.swing.tree.DefaultMutableTreeNode |
root
|
|
Constructor Summary |
ProjectViewFactory(java.lang.String fileName,
javax.swing.tree.TreeModel treeModel)
|
|
Method Summary |
protected void |
addPort(java.lang.String currentFile,
javax.swing.tree.DefaultMutableTreeNode module,
int portType,
java.io.StreamTokenizer stk)
addds all the ports in the current port declaration statement
it is assumed that stk has just passed the "input", "output" or "inout" token |
protected void |
debug(java.lang.String s)
|
protected char |
getMatchingBrace(char brace)
|
protected void |
skipBrace(java.io.StreamTokenizer stk)
force stk to skip a pair of right braces [....] |
protected void |
skipTo(java.io.StreamTokenizer stk,
char to)
Consumes token until the given char token is reached |
protected void |
skipToMatchingBrace(java.io.StreamTokenizer stk,
char brace)
Gets stk over the matching brace of the given one. |
void |
updateProjectTree()
Inserts all the stuff needed into the project tree |
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
fileName
private java.lang.String fileName
root
private javax.swing.tree.DefaultMutableTreeNode root
isValid
private boolean isValid
__debug__
static boolean __debug__
ProjectViewFactory
public ProjectViewFactory(java.lang.String fileName,
javax.swing.tree.TreeModel treeModel)
addPort
protected void addPort(java.lang.String currentFile,
javax.swing.tree.DefaultMutableTreeNode module,
int portType,
java.io.StreamTokenizer stk)
throws java.io.IOException
- addds all the ports in the current port declaration statement
it is assumed that stk has just passed the "input", "output" or "inout" token
skipBrace
protected void skipBrace(java.io.StreamTokenizer stk)
throws java.io.IOException
- force stk to skip a pair of right braces [....]
getMatchingBrace
protected char getMatchingBrace(char brace)
skipToMatchingBrace
protected void skipToMatchingBrace(java.io.StreamTokenizer stk,
char brace)
throws java.io.IOException
- Gets stk over the matching brace of the given one.
skipTo
protected void skipTo(java.io.StreamTokenizer stk,
char to)
throws java.io.IOException
- Consumes token until the given char token is reached
debug
protected void debug(java.lang.String s)
updateProjectTree
public void updateProjectTree()
throws java.lang.Exception
- Inserts all the stuff needed into the project tree