com.dragome.compiler.ast.ConditionalBranch Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dragome-bytecode-js-compiler Show documentation
Show all versions of dragome-bytecode-js-compiler Show documentation
Dragome SDK module: bytecode to javascript compiler
/**
* Copyright by Wolfgang Kuehn 2005
*/
package com.dragome.compiler.ast;
public class ConditionalBranch extends Branch
{
private Expression expression;
public ConditionalBranch(int targetIndex)
{
super(targetIndex);
}
public ConditionalBranch(int theBeginIndex, int theEndIndex, int targetIndex)
{
super(targetIndex);
setExpression(new Expression(theBeginIndex, theEndIndex));
}
public Expression getExpression()
{
return expression;
}
public void setExpression(Expression theExpression)
{
expression= theExpression;
widen(theExpression);
appendChild(theExpression);
}
}