public class CompoundBlock extends Block
BlockCounterid| Constructor and Description |
|---|
CompoundBlock(BlockList body)
constructor with BlockList
|
CompoundBlock(CompoundBlock b)
make clone
|
CompoundBlock(Xcode code,
BlockList body)
constructor with code and BlockList
|
CompoundBlock(Xcode code,
BlockList body,
java.lang.String construct_name)
constructor with code and BlockList
|
| Modifier and Type | Method and Description |
|---|---|
Block |
copy()
make clone
|
Ident |
findVarIdent(java.lang.String name) |
CompoundBlock |
findVarIdentBlock(java.lang.String name) |
BlockList |
getBody()
return body
|
XMPsymbolTable |
getXMPsymbolTable() |
void |
setBody(BlockList s)
set body
|
java.lang.String |
toString()
convert to the printable string
|
Xobject |
toXobject()
convert to Xobject representation
|
add, add, add, findCommonIdent, findParentBlockStmt, findVarIdent, findVarIdentBlock, findXMPobject, getBasicBlock, getCondBBlock, getConstructNameObj, getElseBody, getInfoExpr, getInitBBlock, getIterBBlock, getLabel, getLineNo, getNext, getParent, getParentBlock, getPrev, getThenBody, getXMPobject, insert, insert, insert, numberOfBasicBlock, numberOfBlock, Opcode, remove, removeVarIdent, replace, setElseBody, setInitBBlock, setIterBBlock, setLabel, setLineNo, setParent, setThenBody, visitBasicBlock, visitBodygetProp, getProperties, Id, remProp, remProperties, setId, setProp, setPropertiespublic CompoundBlock(BlockList body)
public CompoundBlock(Xcode code, BlockList body, java.lang.String construct_name)
public CompoundBlock(CompoundBlock b)
public Xobject toXobject()
public java.lang.String toString()
Blockpublic Ident findVarIdent(java.lang.String name)
findVarIdent in interface IVarContainerfindVarIdent in class Blockpublic CompoundBlock findVarIdentBlock(java.lang.String name)
findVarIdentBlock in class Blockpublic XMPsymbolTable getXMPsymbolTable()
getXMPsymbolTable in class Block