Package railo.transformer.bytecode.statement.tag

Source Code of railo.transformer.bytecode.statement.tag.TagScript

package railo.transformer.bytecode.statement.tag;

import railo.transformer.bytecode.BytecodeContext;
import railo.transformer.bytecode.BytecodeException;
import railo.transformer.bytecode.Position;
import railo.transformer.bytecode.visitor.IfVisitor;

public final class TagScript extends TagBaseNoFinal {
 
  public TagScript(Position start,Position end) {
    super(start,end);
  }

  /**
   * @see railo.transformer.bytecode.statement.StatementBase#_writeOut(org.objectweb.asm.commons.GeneratorAdapter)
   */
  public void _writeOut(BytecodeContext bc) throws BytecodeException {
    IfVisitor ifv=new IfVisitor();
    ifv.visitBeforeExpression();
      bc.getAdapter().push(true);
    ifv.visitAfterExpressionBeforeBody(bc);
      getBody().writeOut(bc);
    ifv.visitAfterBody(bc);
  }
}
TOP

Related Classes of railo.transformer.bytecode.statement.tag.TagScript

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.