ist.palcom.st.ast
Class ASTIfExpression

java.lang.Object
  extended by ist.palcom.st.ast.ASTExpression
      extended by ist.palcom.st.ast.ASTIfExpression

public class ASTIfExpression
extends ASTExpression


Field Summary
 
Fields inherited from class ist.palcom.st.ast.ASTExpression
empty_list
 
Constructor Summary
ASTIfExpression(ASTExpression condition, ASTExpression true_part, ASTExpression false_part, java.util.List assignments)
           
 
Method Summary
 boolean compile(ASTBytecodeGenerator generator, ASTBlock context, boolean resultWillBeDiscarded)
           
 java.util.List<ASTExpression> getSubExpressions()
          Returns a read-only list of expressions below this one in the AST
 
Methods inherited from class ist.palcom.st.ast.ASTExpression
compile_assignments, disambiguateVariables, inlineBlocks, isInlinableBlock, liftLocals, renameVariable, set_assignments, setContextOfSubblocks, setFields, subexpressionsHaveVariableNamed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASTIfExpression

public ASTIfExpression(ASTExpression condition,
                       ASTExpression true_part,
                       ASTExpression false_part,
                       java.util.List assignments)
Method Detail

compile

public boolean compile(ASTBytecodeGenerator generator,
                       ASTBlock context,
                       boolean resultWillBeDiscarded)
Specified by:
compile in class ASTExpression

getSubExpressions

public java.util.List<ASTExpression> getSubExpressions()
Description copied from class: ASTExpression
Returns a read-only list of expressions below this one in the AST

Specified by:
getSubExpressions in class ASTExpression