railo.transformer.bytecode.statement
Class StatementBase

java.lang.Object
  extended by railo.transformer.bytecode.statement.StatementBase
All Implemented Interfaces:
Statement
Direct Known Subclasses:
Abort, BodyBase, Break, Condition, Continue, DoWhile, ExpressionStatement, For, ForEach, Function, NativeSwitch, PrintOut, Return, Switch, SystemOut, TagBase, TryCatchFinally, While

public abstract class StatementBase
extends Object
implements Statement

A single Statement


Constructor Summary
StatementBase(int startLine)
           
StatementBase(int startLine, int endLine)
          constructor of the class
 
Method Summary
abstract  void _writeOut(BytecodeContext bc)
          write out the stament to the adater
 int getDescendantCount()
           
 int getEndLine()
           
 int getLine()
          Returns the value of line.
 Statement getParent()
           
 int getStartLine()
           
 boolean hasFlowController()
           
 void setEndLine(int endLine)
          sets the line value.
 void setHasFlowController(boolean hasReturnChild)
           
 void setLine(int startLine)
          Deprecated. replaced with "setStartLine"
 void setParent(Statement parent)
          sets parent statement to statement
 void setStartLine(int startLine)
          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
 

Constructor Detail

StatementBase

public StatementBase(int startLine,
                     int endLine)
constructor of the class

Parameters:
line -

StatementBase

public StatementBase(int startLine)
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

getLine

public int getLine()
Returns the value of line.

Specified by:
getLine in interface Statement
Returns:
value line

setStartLine

public void setStartLine(int startLine)
sets the line value.

Parameters:
line - The line to set.

setLine

public void setLine(int startLine)
Deprecated. replaced with "setStartLine"

sets the line value.

Parameters:
line - The line to set.

setEndLine

public void setEndLine(int endLine)
sets the line value.

Parameters:
line - The line to set.

getStartLine

public int getStartLine()
Returns:
the startLine

getEndLine

public int getEndLine()
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