railo.transformer.bytecode.statement
Class StatementBase

java.lang.Object
  extended by railo.transformer.bytecode.statement.StatementBase
All Implemented Interfaces:
Statement
Direct Known Subclasses:
ForEach, StatementBaseNoFinal, TagBase, TryCatchFinally

public abstract class StatementBase
extends Object
implements Statement

A single Statement


Constructor Summary
StatementBase(Position start, Position end)
          constructor of the class
 
Method Summary
abstract  void _writeOut(BytecodeContext bc)
          write out the stament to the adater
 int getDescendantCount()
           
 Position getEnd()
           
 Statement getParent()
           
 Position getStart()
           
 boolean hasFlowController()
           
 void setEnd(Position end)
          sets the line value.
 void setHasFlowController(boolean hasReturnChild)
           
 void setParent(Statement parent)
          sets parent statement to statement
 void setStart(Position start)
          sets the line value.
 void writeOut(BytecodeContext bc)
          write out the stament to adapter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface railo.transformer.bytecode.Statement
getFlowControlFinal
 

Constructor Detail

StatementBase

public StatementBase(Position start,
                     Position end)
constructor of the class

Parameters:
line -
Method Detail

getParent

public Statement getParent()
Specified by:
getParent in interface Statement
Returns:
returns the parent statement
See Also:
Statement.getParent()

setParent

public void setParent(Statement parent)
Description copied from interface: Statement
sets parent statement to statement

Specified by:
setParent in interface Statement
See Also:
Statement.setParent(railo.transformer.bytecode.Statement)

writeOut

public final void writeOut(BytecodeContext bc)
                    throws BytecodeException
write out the stament to adapter

Specified by:
writeOut in interface Statement
Parameters:
adapter -
Throws:
TemplateException
BytecodeException

_writeOut

public abstract void _writeOut(BytecodeContext bc)
                        throws BytecodeException
write out the stament to the adater

Parameters:
adapter -
Throws:
BytecodeException

setStart

public void setStart(Position start)
sets the line value.

Specified by:
setStart in interface Statement
Parameters:
line - The line to set.

setEnd

public void setEnd(Position end)
sets the line value.

Specified by:
setEnd in interface Statement
Parameters:
line - The line to set.

getStart

public Position getStart()
Specified by:
getStart in interface Statement
Returns:
the startLine

getEnd

public Position getEnd()
Specified by:
getEnd in interface Statement
Returns:
the endLine

getDescendantCount

public final int getDescendantCount()
See Also:
railo.transformer.bytecode.Statement#getDescendantCount()

hasFlowController

public boolean hasFlowController()
Specified by:
hasFlowController in interface Statement
See Also:
Statement.hasFlowController()

setHasFlowController

public void setHasFlowController(boolean hasReturnChild)
Specified by:
setHasFlowController in interface Statement
Parameters:
hasReturnChild - the hasReturnChild to set


Copyright © 2012 Railo