|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbyucc.edif.libraries.xilinx.SimpleNode
Represents a Node with a parent, children and an ID and is used by the parser.
| Field Summary | |
protected Node[] |
children
|
(package private) Token |
first_token
|
static ErrorHandler |
handler
An error handler that stores all error messages and warnings and decides which ones have to be displayed depending on the waring level set in command line. |
protected int |
id
|
(package private) Token |
last_token
|
(package private) java.lang.String |
name
|
protected Node |
parent
|
static VhdlParser |
parser
A static reference to the parser. |
static SymbolTable |
symtab
A static reference to the symbol table |
| Fields inherited from interface byucc.edif.libraries.xilinx.VhdlParserTreeConstants |
JJTABSTRACT_LITERAL, JJTARCHITECTURE_BODY, JJTBOUND_EXPR, JJTCOMP_DECL, JJTDESIGN_FILE, JJTDIRECTION, JJTENTITY_DECLARATION, JJTFACTOR, JJTIDENTIFIER, JJTIDENTIFIER_LIST, JJTMODE, jjtNodeName, JJTPORT_CLAUSE, JJTPROCESS_STATEMENT, JJTRANGE, JJTRELATION, JJTSHIFT_EXPRESSION, JJTSIGNAL_INTERFACE_DECL, JJTSIMPLE_EXPRESSION, JJTSUBTYPE, JJTTERM, JJTVOID |
| Constructor Summary | |
SimpleNode(int i)
|
|
SimpleNode(VhdlParser p,
int i)
|
|
| Method Summary | |
void |
Check()
Perform all semantic actions and checks, which are necessary |
void |
CheckSIWGLevel1()
Report warnings, when SIWG Level 1 is violated |
java.lang.Object |
childrenAccept(VhdlParserVisitor visitor,
java.lang.Object data)
Accept the visitor. |
void |
dump(java.lang.String prefix)
|
void |
endBlock()
End a block: the current symbol table becomes the upper symbol table. |
int |
getId()
|
java.lang.Object |
jjtAccept(VhdlParserVisitor visitor,
java.lang.Object data)
Accept the visitor. |
void |
jjtAddChild(Node n,
int i)
This method tells the node to add its argument to the node's list of children. |
void |
jjtClose()
This method is called after all the child nodes have been added. |
Node |
jjtGetChild(int i)
This method returns a child node. |
int |
jjtGetNumChildren()
Return the number of children the node has. |
Node |
jjtGetParent()
|
void |
jjtOpen()
This method is called after the node has been made the current node. |
void |
jjtSetParent(Node n)
This pair of methods are used to inform the node of its parent. |
void |
newBlock()
Start a new block with a new symbol table. |
void |
newBlock(java.lang.String type,
java.lang.String id)
Start a new block wit a new symbol table. |
java.lang.String |
toString()
|
java.lang.String |
toString(java.lang.String prefix)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected Node parent
protected Node[] children
protected int id
public static ErrorHandler handler
public static VhdlParser parser
public static SymbolTable symtab
Token first_token
Token last_token
java.lang.String name
| Constructor Detail |
public SimpleNode(int i)
public SimpleNode(VhdlParser p,
int i)
| Method Detail |
public void jjtOpen()
Node
jjtOpen in interface Nodepublic void jjtClose()
Node
jjtClose in interface Nodepublic void jjtSetParent(Node n)
Node
jjtSetParent in interface Nodepublic Node jjtGetParent()
jjtGetParent in interface Node
public void jjtAddChild(Node n,
int i)
Node
jjtAddChild in interface Nodepublic Node jjtGetChild(int i)
Node
jjtGetChild in interface Nodepublic int jjtGetNumChildren()
Node
jjtGetNumChildren in interface Node
public java.lang.Object jjtAccept(VhdlParserVisitor visitor,
java.lang.Object data)
jjtAccept in interface Node
public java.lang.Object childrenAccept(VhdlParserVisitor visitor,
java.lang.Object data)
public java.lang.String toString()
public java.lang.String toString(java.lang.String prefix)
public void dump(java.lang.String prefix)
public void newBlock()
public void newBlock(java.lang.String type,
java.lang.String id)
public void endBlock()
public void Check()
public void CheckSIWGLevel1()
public int getId()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||