com.dragome.compiler.ast.LoopStatement 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
package com.dragome.compiler.ast;
public class LoopStatement extends Block
{
public LoopStatement()
{
super();
}
public LoopStatement(int theBeginIndex)
{
super(theBeginIndex);
}
public LoopStatement(int theBeginIndex, int theEndIndex)
{
super(theBeginIndex, theEndIndex);
}
public Expression getExpression()
{
return (Expression) getChildAt(1);
}
public void setExpression(Expression expression)
{
widen(expression);
setChildAt(1, expression);
}
public Block getBlock()
{
return (Block) getChildAt(0);
}
public void setBlock(Block block)
{
widen(block);
setChildAt(0, block);
}
}