com.voytechs.jnetstream.npl
Class ForStatement
java.lang.Object
com.voytechs.jnetstream.npl.Node
com.voytechs.jnetstream.npl.StatementNode
com.voytechs.jnetstream.npl.ForStatement
- All Implemented Interfaces:
- Visitable
public class ForStatement
- extends StatementNode
- implements Visitable
| Fields inherited from class com.voytechs.jnetstream.npl.Node |
parent |
| Methods inherited from class com.voytechs.jnetstream.npl.StatementNode |
acceptCode, acceptLValue, acceptModifier, acceptStatement, canOptimize, getCode, getLineNumber, getName, getPermTable, getStatement, getSymTable, getType, getTypePrimitive, optimize, parseCode, parseLValue, parseModifiers, parsePostModifiers, setSymTable, setTypePrimitive, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
condition
protected BooleanNode condition
forCode
protected Node forCode
initCode
protected Node initCode
ForStatement
public ForStatement()
- Parameters:
-
- Throws:
parse
public Node parse(ExpTokenizer tokens)
throws SyntaxError
- Overrides:
parse in class StatementNode
- Throws:
SyntaxError
visit
public boolean visit(Visitor visitor,
java.lang.Object user1,
java.lang.Object user2)
throws NodeException
- Specified by:
visit in interface Visitable
- Throws:
NodeException
parseCondition
protected void parseCondition(ExpTokenizer tokens)
throws SyntaxError
- Throws:
SyntaxError
parseInitCode
protected void parseInitCode(ExpTokenizer tokens)
throws SyntaxError
- Throws:
SyntaxError
getInitCode
public Node getInitCode()
parseForCode
protected void parseForCode(ExpTokenizer tokens)
throws SyntaxError
- Throws:
SyntaxError
getForCode
public Node getForCode()
getCondition
public BooleanNode getCondition()
main
public static void main(java.lang.String[] args)
- Test function for ForStatement
- Parameters:
args - command line arguments