org.nlogo.command
Class BasicBlockCommand
java.lang.Object
org.nlogo.command.Instruction
org.nlogo.command.Command
org.nlogo.command.BasicBlockCommand
- All Implemented Interfaces:
- Cloneable, org.nlogo.compiler.Branching
public class BasicBlockCommand
- extends Command
- implements org.nlogo.compiler.Branching
Methods inherited from class org.nlogo.command.Instruction |
addProcedureToInliningRecords, agentClassCanPerform, agentClassString, agentClassString, argEvalAgent, argEvalAgentSet, argEvalAgentSet, argEvalBoolean, argEvalBooleanValue, argEvalDouble, argEvalDoubleValue, argEvalIntValue, argEvalLink, argEvalList, argEvalLong, argEvalLongValue, argEvalPatch, argEvalString, argEvalTurtle, assemble, checkAgentClass, checkAgentSetClass, clone, copyFieldsFrom, displayName, dump, dump, getInlinedDepth, getInliningRecords, getPositionAndLength, getSourceEndPosition, getSourceSnippet, getSourceStartPosition, newValidDouble, newValidDouble, optimize0, optimize1, optimize2, setSourceSnippet, throwAgentClassException, token, token, tokenLimitingType, tokenLimitingType, validDouble, wasInlined, workspace |
commandList
public ArrayList commandList
BasicBlockCommand
public BasicBlockCommand(ArrayList commandList)
getBranchTargetOffset
public int getBranchTargetOffset()
- Specified by:
getBranchTargetOffset
in interface org.nlogo.compiler.Branching
setBranchTargetOffset
public void setBranchTargetOffset(int newOffset)
- Specified by:
setBranchTargetOffset
in interface org.nlogo.compiler.Branching
perform
public void perform(Context context)
throws LogoException
- Specified by:
perform
in class Command
- Throws:
LogoException
getSyntax
public org.nlogo.compiler.Syntax getSyntax()
- Specified by:
getSyntax
in class Instruction
toString
public String toString()
- Overrides:
toString
in class Command
init
public void init(Workspace workspace)
- Overrides:
init
in class Instruction