public class IfBlock extends Block
BlockCounter
id
Constructor and Description |
---|
IfBlock(BasicBlock cond,
BlockList then_part,
BlockList else_part) |
IfBlock(IfBlock b)
constructor to make copy of b
|
IfBlock(Xcode code,
BasicBlock cond,
BlockList then_part,
BlockList else_part,
java.lang.String construct_name)
constructor
|
Modifier and Type | Method and Description |
---|---|
Block |
copy()
return copy of this block
|
BasicBlock |
getCondBBlock()
return BasicBlock in condition part
|
BlockList |
getElseBody()
get the BlockList of "else" part
|
BlockList |
getThenBody()
get the BlockList of "then" part
|
void |
setCondBBlock(BasicBlock bb)
set BasicBlock in condition part
|
void |
setElseBody(BlockList s)
set the BlockList of "else" part
|
void |
setThenBody(BlockList s)
set the BlockList of "then" part
|
java.lang.String |
toString()
convert to the printable string
|
Xobject |
toXobject()
convert to Xobject
|
void |
visitBody(BasicBlockVisitor v)
apply visitor recursively
|
add, add, add, findCommonIdent, findParentBlockStmt, findVarIdent, findVarIdent, findVarIdentBlock, findVarIdentBlock, findXMPobject, getBasicBlock, getBody, getConstructNameObj, getInfoExpr, getInitBBlock, getIterBBlock, getLabel, getLineNo, getNext, getParent, getParentBlock, getPrev, getXMPobject, getXMPsymbolTable, insert, insert, insert, numberOfBasicBlock, numberOfBlock, Opcode, remove, removeVarIdent, replace, setBody, setInitBBlock, setIterBBlock, setLabel, setLineNo, setParent, visitBasicBlock
getProp, getProperties, Id, remProp, remProperties, setId, setProp, setProperties
public IfBlock(BasicBlock cond, BlockList then_part, BlockList else_part)
public IfBlock(Xcode code, BasicBlock cond, BlockList then_part, BlockList else_part, java.lang.String construct_name)
public IfBlock(IfBlock b)
public BasicBlock getCondBBlock()
getCondBBlock
in class Block
public void setCondBBlock(BasicBlock bb)
public BlockList getThenBody()
getThenBody
in class Block
public BlockList getElseBody()
getElseBody
in class Block
public void setThenBody(BlockList s)
setThenBody
in class Block
public void setElseBody(BlockList s)
setElseBody
in class Block
public void visitBody(BasicBlockVisitor v)