org.problets.domain.model.control.iteration
Class VBForLoopModel
java.lang.Object
org.problets.domain.model.DomainModel
org.problets.domain.model.control.ControlModel
org.problets.domain.model.control.ConditionControl
org.problets.domain.model.control.iteration.AbstractLoopModel
org.problets.domain.model.control.iteration.ForLoopModel
org.problets.domain.model.control.iteration.VBForLoopModel
- All Implemented Interfaces:
- java.lang.Cloneable
public class VBForLoopModel
- extends ForLoopModel
Model of a Visual Basic For loop
- Author:
- Amruth Kumar
Fields inherited from class org.problets.domain.model.DomainModel |
BOOLEAN, BREAKPOINT, CHARACTER, DOUBLE_PRECISION_REAL, ERROR_TYPE, EVAL_STATUS, expACTION, expASSIGNMENT, expAUTO_DEALLOCATION, expCALL, expCONDITION, expDECLARATION, expDEREFERENCING, expDYNAMIC_ALLOCATION, expDYNAMIC_ALLOCATION_INITIALIZATION, expDYNAMIC_DEALLOCATION, expELSE_CLAUSE, expERROR, expEXECUTION, expIF_CLAUSE, expINITIALIZATION, expINPUT, expPARAMETER_PASSING, expPRINT, expQUESTIONABLE, expREFERENCING, expRETURN, expRUNTIME_ERROR, expSEMANTIC_ERROR, expSYNTAX_ERROR, expUPDATE, MAX_OBJECT_IDENTITY, MIN_OBJECT_IDENTITY, QUADRUPLE_PRECISION_REAL, RUNTIME_ERROR, SEMANTIC_ERROR, SIGNED_INTEGER, SIGNED_LONG, SIGNED_SHORT, SINGLE_PRECISION_REAL, SYNTAX_ERROR, UNDEFINED_TYPE, UNSIGNED_INTEGER, UNSIGNED_LONG, UNSIGNED_SHORT, WARNING |
Method Summary |
void |
getCode(java.util.Vector codeText,
OutputStream output)
public void getCode(Vector codeText, OutputStream output)
This function generates the code seen by the student |
static void |
main(java.lang.String[] args)
|
void |
parseHeader(java.lang.String header)
Parses the header string and extracts initial, condition and update
strings. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VBForLoopModel
public VBForLoopModel(ActivationRecord parent,
HeapModel heap,
java.lang.String inTemplate,
int inScopeType)
parseHeader
public void parseHeader(java.lang.String header)
- Parses the header string and extracts initial, condition and update
strings. This is called by the constructor.
- Overrides:
parseHeader
in class ForLoopModel
- Parameters:
header
- - a String that holds the header
getCode
public void getCode(java.util.Vector codeText,
OutputStream output)
- public void getCode(Vector codeText, OutputStream output)
This function generates the code seen by the student
- Overrides:
getCode
in class ForLoopModel
- Parameters:
codeText
- - a vector that holds the code
main
public static void main(java.lang.String[] args)