public class IfProgramBlock extends ProgramBlock
_beginColumn, _beginLine, _endColumn, _endLine, _filename, _text, PRED_VAR| Constructor and Description | 
|---|
| IfProgramBlock(Program prog,
              ArrayList<Instruction> predicate) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addProgramBlockElseBody(ProgramBlock pb) | 
| void | addProgramBlockIfBody(ProgramBlock pb) | 
| void | execute(ExecutionContext ec)Executes this program block (incl recompilation if required). | 
| ArrayList<ProgramBlock> | getChildBlocks()Get the list of child program blocks if nested;
 otherwise this method returns null. | 
| ArrayList<ProgramBlock> | getChildBlocksElseBody() | 
| ArrayList<ProgramBlock> | getChildBlocksIfBody() | 
| ArrayList<Instruction> | getPredicate() | 
| boolean | isNested()Indicates if the program block is nested, i.e., 
 if it contains other program blocks (e.g., loops). | 
| String | printBlockErrorLocation() | 
| void | setChildBlocksElseBody(ArrayList<ProgramBlock> blocks) | 
| void | setChildBlocksIfBody(ArrayList<ProgramBlock> blocks) | 
| void | setLineageDedupPathPos(int pos) | 
| void | setPredicate(ArrayList<Instruction> predicate) | 
executePredicate, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getExitInstruction, getFilename, getProgram, getStatementBlock, getText, getThreadID, hasThreadID, isThreadID, setBeginColumn, setBeginLine, setEndColumn, setEndLine, setExitInstruction, setFilename, setParseInfo, setProgram, setStatementBlock, setText, setThreadIDequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitctxAndFilenameToParseInfopublic IfProgramBlock(Program prog, ArrayList<Instruction> predicate)
public ArrayList<ProgramBlock> getChildBlocksIfBody()
public void setChildBlocksIfBody(ArrayList<ProgramBlock> blocks)
public void addProgramBlockIfBody(ProgramBlock pb)
public ArrayList<ProgramBlock> getChildBlocksElseBody()
public void setChildBlocksElseBody(ArrayList<ProgramBlock> blocks)
public void addProgramBlockElseBody(ProgramBlock pb)
public ArrayList<Instruction> getPredicate()
public void setPredicate(ArrayList<Instruction> predicate)
public ArrayList<ProgramBlock> getChildBlocks()
ProgramBlockgetChildBlocks in class ProgramBlockpublic boolean isNested()
ProgramBlockisNested in class ProgramBlockpublic void setLineageDedupPathPos(int pos)
public void execute(ExecutionContext ec)
ProgramBlockexecute in class ProgramBlockec - execution contextpublic String printBlockErrorLocation()
printBlockErrorLocation in class ProgramBlockCopyright © 2020 The Apache Software Foundation. All rights reserved.