public final class IfRegion extends ConditionRegion implements IBranchRegion
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
baseString()
Unique id for use in 'toString()' method
|
void |
generate(RegionGen regionGen,
ICodeWriter code)
Dispatch to needed generate method in RegionGen
|
java.util.List<IContainer> |
getBranches()
Return list of branches in this region.
|
IContainer |
getElseRegion() |
int |
getSourceLine() |
java.util.List<IContainer> |
getSubBlocks() |
IContainer |
getThenRegion() |
void |
invert() |
boolean |
replaceSubBlock(IContainer oldBlock,
IContainer newBlock) |
void |
setElseRegion(IContainer elseRegion) |
void |
setThenRegion(IContainer thenRegion) |
java.lang.String |
toString() |
getCondition, getConditionBlocks, getConditionSourceLine, invertCondition, simplifyCondition, updateCondition, updateCondition, updateConditiongetParent, setParent, updateParentadd, addAttr, addAttr, addAttr, addAttrs, clearAttributes, contains, contains, copyAttributeFrom, copyAttributesFrom, get, getAll, getAnnotation, getAttributesString, getAttributesStringsList, isAttrStorageEmpty, remove, remove, removeAttr, rewriteAttributeFrom, unloadAttributesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, addAttr, addAttr, addAttrs, clearAttributes, contains, contains, copyAttributeFrom, copyAttributesFrom, get, getAll, getAnnotation, getAttributesString, getAttributesStringsList, isAttrStorageEmpty, remove, remove, removeAttr, rewriteAttributeFrompublic IfRegion(IRegion parent)
public IContainer getThenRegion()
public void setThenRegion(IContainer thenRegion)
public IContainer getElseRegion()
public void setElseRegion(IContainer elseRegion)
public void invert()
public int getSourceLine()
public java.util.List<IContainer> getSubBlocks()
getSubBlocks in interface IRegionpublic java.util.List<IContainer> getBranches()
IBranchRegiongetBranches in interface IBranchRegionpublic boolean replaceSubBlock(IContainer oldBlock, IContainer newBlock)
replaceSubBlock in interface IRegionreplaceSubBlock in class AbstractRegionpublic void generate(RegionGen regionGen, ICodeWriter code) throws CodegenException
IContainergenerate in interface IContainerCodegenExceptionpublic java.lang.String baseString()
IContainerbaseString in interface IContainerpublic java.lang.String toString()
toString in class java.lang.Object