001    package railo.transformer.bytecode.statement.tag;
002    
003    import railo.transformer.bytecode.BytecodeContext;
004    import railo.transformer.bytecode.BytecodeException;
005    import railo.transformer.bytecode.Position;
006    import railo.transformer.bytecode.visitor.IfVisitor;
007    
008    public final class TagScript extends TagBaseNoFinal {
009            
010            public TagScript(Position start,Position end) {
011                    super(start,end);
012            }
013    
014            /**
015             * @see railo.transformer.bytecode.statement.StatementBase#_writeOut(org.objectweb.asm.commons.GeneratorAdapter)
016             */
017            public void _writeOut(BytecodeContext bc) throws BytecodeException {
018                    IfVisitor ifv=new IfVisitor();
019                    ifv.visitBeforeExpression();
020                            bc.getAdapter().push(true);
021                    ifv.visitAfterExpressionBeforeBody(bc);
022                            getBody().writeOut(bc);
023                    ifv.visitAfterBody(bc);
024            }
025    }