| java.lang.Object com.go.tea.parsetree.Node com.go.tea.parsetree.Statement com.go.tea.parsetree.IfStatement
IfStatement | public class IfStatement extends Statement (Code) | | An IfStatement consists of a condition, a "then" part and an "else" part.
Both the then and else parts are optional, but a parser should never
create an IfStatement without a then part. An optimizer may detect that
the then part never executes, and so eliminates it.
author: Brian S O'Neill version: 24 , 5/31/01 |
getElsePart | public Block getElsePart()(Code) | | Null if no else part. |
getMergedVariables | public Variable[] getMergedVariables()(Code) | | Returns the variables that were commonly assigned in both the "then"
and "else" parts of the if statement, were merged together and moved
into the parent scope. Returns null if not set.
|
getThenPart | public Block getThenPart()(Code) | | Null if no then part. |
isBreak | public boolean isBreak()(Code) | | |
isReturn | public boolean isReturn()(Code) | | |
setMergedVariables | public void setMergedVariables(Variable[] vars)(Code) | | |
|
|