public class IfBlock extends Block
BlockCounterid| 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, visitBasicBlockgetProp, getProperties, Id, remProp, remProperties, setId, setProp, setPropertiespublic 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 Blockpublic void setCondBBlock(BasicBlock bb)
public BlockList getThenBody()
getThenBody in class Blockpublic BlockList getElseBody()
getElseBody in class Blockpublic void setThenBody(BlockList s)
setThenBody in class Blockpublic void setElseBody(BlockList s)
setElseBody in class Blockpublic void visitBody(BasicBlockVisitor v)