railo.transformer.bytecode
Class BodyBase

java.lang.Object
  extended by railo.transformer.bytecode.statement.StatementBase
      extended by railo.transformer.bytecode.BodyBase
All Implemented Interfaces:
Body, Statement
Direct Known Subclasses:
FlowControlBody, Page

public class BodyBase
extends StatementBase
implements Body

Base Body implementation


Constructor Summary
BodyBase()
          Constructor of the class
 
Method Summary
 void _writeOut(BytecodeContext bc)
          write out the stament to the adater
 void addFirst(Statement statement)
          adds a statement to the Page
 void addPrintOut(String str, int line)
           
 void addStatement(Statement statement)
           
 List getStatements()
          returns all statements
 boolean isEmpty()
          returns if body has content or not
 void moveStatmentsTo(Body trg)
          move all statements to target body
 void remove(Statement statement)
           
static void writeOut(BytecodeContext statConstr, BytecodeContext constr, List keys, List<Statement> statements, BytecodeContext bc)
           
 
Methods inherited from class railo.transformer.bytecode.statement.StatementBase
getDescendantCount, getEndLine, getLine, getParent, getStartLine, hasFlowController, setEndLine, setHasFlowController, setLine, setParent, setStartLine, writeOut
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface railo.transformer.bytecode.Statement
getLine, getParent, hasFlowController, setHasFlowController, setParent, writeOut
 

Constructor Detail

BodyBase

public BodyBase()
Constructor of the class

Method Detail

addStatement

public void addStatement(Statement statement)
Specified by:
addStatement in interface Body
See Also:
Body.addStatement(railo.transformer.bytecode.Statement)

addFirst

public void addFirst(Statement statement)
Description copied from interface: Body
adds a statement to the Page

Specified by:
addFirst in interface Body

remove

public void remove(Statement statement)
Specified by:
remove in interface Body

getStatements

public List getStatements()
Description copied from interface: Body
returns all statements

Specified by:
getStatements in interface Body
Returns:
the statements
See Also:
Body.getStatements()

moveStatmentsTo

public void moveStatmentsTo(Body trg)
Description copied from interface: Body
move all statements to target body

Specified by:
moveStatmentsTo in interface Body
See Also:
Body.moveStatmentsTo(railo.transformer.bytecode.Body)

addPrintOut

public void addPrintOut(String str,
                        int line)
Specified by:
addPrintOut in interface Body

_writeOut

public void _writeOut(BytecodeContext bc)
               throws BytecodeException
Description copied from class: StatementBase
write out the stament to the adater

Specified by:
_writeOut in class StatementBase
Throws:
BytecodeException

writeOut

public static void writeOut(BytecodeContext statConstr,
                            BytecodeContext constr,
                            List keys,
                            List<Statement> statements,
                            BytecodeContext bc)
                     throws BytecodeException
Throws:
BytecodeException

isEmpty

public boolean isEmpty()
Description copied from interface: Body
returns if body has content or not

Specified by:
isEmpty in interface Body
Returns:
is empty
See Also:
Body.isEmpty()


Copyright © 2012 Railo