railo.transformer.bytecode
Interface Statement

All Known Subinterfaces:
Body, Tag
All Known Implementing Classes:
Abort, BodyBase, Closure, Condition, DoWhile, ExpressionAsStatement, FlowControlBody, For, ForEach, Function, FunctionBody, FunctionImpl, NativeSwitch, Page, PrintOut, Retry, Return, ScriptBody, StatementBase, StatementBaseNoFinal, Switch, SystemOut, TagBase, TagBaseNoFinal, TagBreak, TagComponent, TagContinue, TagFunction, TagGroup, TagIf, TagImport, TagInclude, TagJavaScript, TagLoop, TagOther, TagOutput, TagParam, TagReThrow, TagRetry, TagReturn, TagScript, TagSet, TagSilent, TagSwitch, TagThread, TagTry, TagWhile, TryCatchFinally, While

public interface Statement

A single Statement


Method Summary
 Position getEnd()
           
 FlowControlFinal getFlowControlFinal()
           
 Statement getParent()
           
 Position getStart()
           
 boolean hasFlowController()
           
 void setEnd(Position endLine)
          sets the line value.
 void setHasFlowController(boolean has)
           
 void setParent(Statement parent)
          sets parent statement to statement
 void setStart(Position startLine)
          sets the line value.
 void writeOut(BytecodeContext bc)
          write out the stament to adapter
 

Method Detail

setParent

void setParent(Statement parent)
sets parent statement to statement

Parameters:
parent -

hasFlowController

boolean hasFlowController()

setHasFlowController

void setHasFlowController(boolean has)

getParent

Statement getParent()
Returns:
returns the parent statement

writeOut

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

Parameters:
adapter -
Throws:
TemplateException
BytecodeException

setStart

void setStart(Position startLine)
sets the line value.

Parameters:
line - The line to set.

setEnd

void setEnd(Position endLine)
sets the line value.

Parameters:
line - The line to set.

getStart

Position getStart()
Returns:
the startLine

getEnd

Position getEnd()
Returns:
the endLine

getFlowControlFinal

FlowControlFinal getFlowControlFinal()
Returns:
return the label where the finally block of this tags starts, IF there is a finally block, otherwise return null;


Copyright © 2012 Railo