railo.transformer.bytecode
Class Page

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

public final class Page
extends BodyBase

represent a single Page like "index.cfm"


Field Summary
static byte _33
           
static byte CF
           
static org.objectweb.asm.commons.Method STATIC_CONSTRUCTOR
           
static org.objectweb.asm.Type STRUCT_IMPL
           
 
Constructor Summary
Page(Resource source, String name, int version, long lastModifed, boolean writeLog)
           
 
Method Summary
 void _writeOut(BytecodeContext bc)
          write out the stament to the adater
 int addFunction(IFunction function)
           
 int addThread(TagThread thread)
           
static void createMetaDataStruct(BytecodeContext bc, Map attrs, Map meta)
           
 void doFinalize(BytecodeContext bc)
           
 byte[] execute(Resource classFile)
          result byte code as binary array
 long getLastModifed()
           
 String getSource()
           
 boolean isComponent()
           
 boolean isInterface()
           
 boolean isPage()
           
static void registerFields(BytecodeContext bc, List keys)
           
 void setIsComponent(boolean isComponent)
          set if the page is a component or not
 void setIsInterface(boolean isInterface)
          set if the page is a component or not
static byte[] setSourceLastModified(byte[] barr, long lastModified)
           
 
Methods inherited from class railo.transformer.bytecode.BodyBase
addFirst, addPrintOut, addStatement, getStatements, isEmpty, moveStatmentsTo, remove, writeOut
 
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
 

Field Detail

STATIC_CONSTRUCTOR

public static final org.objectweb.asm.commons.Method STATIC_CONSTRUCTOR

STRUCT_IMPL

public static final org.objectweb.asm.Type STRUCT_IMPL

CF

public static final byte CF
See Also:
Constant Field Values

_33

public static final byte _33
See Also:
Constant Field Values
Constructor Detail

Page

public Page(Resource source,
            String name,
            int version,
            long lastModifed,
            boolean writeLog)
Method Detail

doFinalize

public void doFinalize(BytecodeContext bc)

execute

public byte[] execute(Resource classFile)
               throws BytecodeException
result byte code as binary array

Parameters:
classFile -
Returns:
byte code
Throws:
IOException
TemplateException
BytecodeException

registerFields

public static void registerFields(BytecodeContext bc,
                                  List keys)
                           throws BytecodeException
Throws:
BytecodeException

_writeOut

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

Overrides:
_writeOut in class BodyBase
Throws:
BytecodeException

createMetaDataStruct

public static void createMetaDataStruct(BytecodeContext bc,
                                        Map attrs,
                                        Map meta)
                                 throws BytecodeException
Throws:
BytecodeException

getSource

public String getSource()
Returns:
the source

isComponent

public boolean isComponent()
Returns:
if it is a component

setIsComponent

public void setIsComponent(boolean isComponent)
set if the page is a component or not

Parameters:
cfc -

isInterface

public boolean isInterface()
Returns:
if it is a component

isPage

public boolean isPage()

setIsInterface

public void setIsInterface(boolean isInterface)
set if the page is a component or not

Parameters:
cfc -

getLastModifed

public long getLastModifed()
Returns:
the lastModifed

addFunction

public int addFunction(IFunction function)

addThread

public int addThread(TagThread thread)

setSourceLastModified

public static byte[] setSourceLastModified(byte[] barr,
                                           long lastModified)


Copyright © 2012 Railo