railo.transformer.bytecode
Class Page

java.lang.Object
  extended by railo.transformer.bytecode.statement.StatementBase
      extended by railo.transformer.bytecode.statement.StatementBaseNoFinal
          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.Type KEY_CONSTANTS
           
static org.objectweb.asm.Type KEY_IMPL
           
static org.objectweb.asm.commons.Method KEY_INIT
           
static org.objectweb.asm.commons.Method KEY_INTERN
           
static org.objectweb.asm.Type NULL
           
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, boolean supressWSbeforeArg)
           
 
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()
           
static boolean hasMetaDataStruct(Map attrs, Map meta)
           
 boolean isComponent()
           
 boolean isInterface()
           
 boolean isPage()
           
static void registerFields(BytecodeContext bc, List<LitString> 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, hasStatements, isEmpty, moveStatmentsTo, remove, writeOut, writeOut2
 
Methods inherited from class railo.transformer.bytecode.statement.StatementBaseNoFinal
getFlowControlFinal
 
Methods inherited from class railo.transformer.bytecode.statement.StatementBase
getDescendantCount, getEnd, getParent, getStart, hasFlowController, setEnd, setHasFlowController, setParent, setStart, 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
getEnd, getFlowControlFinal, getParent, getStart, hasFlowController, setEnd, setHasFlowController, setParent, setStart, writeOut
 

Field Detail

NULL

public static final org.objectweb.asm.Type NULL

KEY_IMPL

public static final org.objectweb.asm.Type KEY_IMPL

KEY_CONSTANTS

public static final org.objectweb.asm.Type KEY_CONSTANTS

KEY_INIT

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

KEY_INTERN

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

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,
            boolean supressWSbeforeArg)
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<LitString> 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

hasMetaDataStruct

public static boolean hasMetaDataStruct(Map attrs,
                                        Map meta)

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