railo.transformer.bytecode
Class Page
java.lang.Object
railo.transformer.bytecode.statement.StatementBase
railo.transformer.bytecode.BodyBase
railo.transformer.bytecode.Page
- All Implemented Interfaces:
- Body, Statement
public final class Page
- extends BodyBase
represent a single Page like "index.cfm"
Constructor Summary |
Page(Resource source,
String name,
int version,
long lastModifed,
boolean writeLog)
|
Methods inherited from class railo.transformer.bytecode.statement.StatementBase |
getDescendantCount, getEndLine, getLine, getParent, getStartLine, hasFlowController, setEndLine, setHasFlowController, setLine, setParent, setStartLine, writeOut |
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
Page
public Page(Resource source,
String name,
int version,
long lastModifed,
boolean writeLog)
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