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.visitor.IfVisitor; 006 007 public final class TagJavaScript extends TagBase { 008 009 /** 010 * Constructor of the class 011 * @param tag 012 */ 013 public TagJavaScript(int line) { 014 super(line); 015 } 016 public TagJavaScript(int sl,int el) { 017 super(sl,el); 018 } 019 020 /** 021 * @see railo.transformer.bytecode.statement.StatementBase#_writeOut(org.objectweb.asm.commons.GeneratorAdapter) 022 */ 023 public void _writeOut(BytecodeContext bc) throws BytecodeException { 024 IfVisitor ifv=new IfVisitor(); 025 ifv.visitBeforeExpression(); 026 bc.getAdapter().push(true); 027 ifv.visitAfterExpressionBeforeBody(bc); 028 getBody().writeOut(bc); 029 ifv.visitAfterBody(bc); 030 } 031 }