org.eclipse.internal.xtend.expression.ast
Class IfExpression

java.lang.Object
  extended by org.eclipse.internal.xtend.expression.ast.SyntaxElement
      extended by org.eclipse.internal.xtend.expression.ast.Expression
          extended by org.eclipse.internal.xtend.expression.ast.IfExpression
All Implemented Interfaces:
ISyntaxElement, Analyzable, Evaluatable

public class IfExpression
extends Expression

Author:
Sven Efftinge (http://www.efftinge.de), Arno Haase, Bernd Kolb

Field Summary
 
Fields inherited from class org.eclipse.internal.xtend.expression.ast.SyntaxElement
end, line, start
 
Constructor Summary
IfExpression(Expression condition, Expression thenPart, Expression elsePart)
           
 
Method Summary
 Type analyzeInternal(ExecutionContext ctx, java.util.Set<AnalysationIssue> issues)
           
 java.lang.Object evaluateInternal(ExecutionContext ctx)
           
 Expression getCondition()
           
 Expression getElsePart()
           
 Expression getThenPart()
           
protected  java.lang.String toStringInternal()
           
 
Methods inherited from class org.eclipse.internal.xtend.expression.ast.Expression
analyze, evaluate, findType, toString
 
Methods inherited from class org.eclipse.internal.xtend.expression.ast.SyntaxElement
accept, getEnd, getFileName, getLine, getNameString, getStart, setEnd, setFileName, setLine, setStart
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IfExpression

public IfExpression(Expression condition,
                    Expression thenPart,
                    Expression elsePart)
Method Detail

getCondition

public Expression getCondition()

getElsePart

public Expression getElsePart()

getThenPart

public Expression getThenPart()

evaluateInternal

public java.lang.Object evaluateInternal(ExecutionContext ctx)
Specified by:
evaluateInternal in class Expression

analyzeInternal

public Type analyzeInternal(ExecutionContext ctx,
                            java.util.Set<AnalysationIssue> issues)
Specified by:
analyzeInternal in class Expression

toStringInternal

protected java.lang.String toStringInternal()
Specified by:
toStringInternal in class Expression