com.voytechs.jnetstream.npl
Class BreakStatement
java.lang.Object
com.voytechs.jnetstream.npl.Node
com.voytechs.jnetstream.npl.StatementNode
com.voytechs.jnetstream.npl.BreakStatement
- All Implemented Interfaces:
- Visitable
public class BreakStatement
- 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
breakCount
protected int breakCount
BreakStatement
public BreakStatement()
- 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
parseBreakCount
protected void parseBreakCount(ExpTokenizer tokens)
throws SyntaxError
- Throws:
SyntaxError
getBreakCount
public int getBreakCount()
main
public static void main(java.lang.String[] args)
- Test function for BreakStatement
- Parameters:
args - command line arguments