public class BodyBase extends StatementBaseNoFinal implements Body
Constructor and Description |
---|
BodyBase()
Constructor of the class
|
Modifier and Type | Method and Description |
---|---|
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,
Position start,
Position end) |
void |
addStatement(Statement statement) |
List<Statement> |
getStatements() |
boolean |
hasStatements()
returns all statements
|
static String |
id() |
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 bc,
Body body) |
static void |
writeOut(BytecodeContext bc,
List<Statement> statements) |
static void |
writeOutNew(BytecodeContext bc,
List<Statement> statements) |
getFlowControlFinal
getDescendantCount, getEnd, getParent, getStart, hasFlowController, setEnd, setHasFlowController, setParent, setStart, writeOut
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEnd, getFlowControlFinal, getParent, getStart, hasFlowController, setEnd, setHasFlowController, setParent, setStart, writeOut
public BodyBase()
public void addStatement(Statement statement)
addStatement
in interface Body
Body.addStatement(lucee.transformer.bytecode.Statement)
public void addFirst(Statement statement)
Body
public List<Statement> getStatements()
getStatements
in interface Body
Body.getStatements()
public boolean hasStatements()
Body
hasStatements
in interface Body
public void moveStatmentsTo(Body trg)
Body
moveStatmentsTo
in interface Body
Body.moveStatmentsTo(lucee.transformer.bytecode.Body)
public void addPrintOut(String str, Position start, Position end)
addPrintOut
in interface Body
public void _writeOut(BytecodeContext bc) throws BytecodeException
StatementBase
_writeOut
in class StatementBase
BytecodeException
public static void writeOut(BytecodeContext bc, Body body) throws BytecodeException
BytecodeException
public static void writeOut(BytecodeContext bc, List<Statement> statements) throws BytecodeException
BytecodeException
public static void writeOutNew(BytecodeContext bc, List<Statement> statements) throws BytecodeException
BytecodeException
public boolean isEmpty()
Body
isEmpty
in interface Body
Body.isEmpty()
Copyright © 2015 Lucee