railo.transformer.bytecode
Class BytecodeContext

java.lang.Object
  extended by railo.transformer.bytecode.BytecodeContext

public class BytecodeContext
extends Object


Constructor Summary
BytecodeContext(BytecodeContext statConstr, BytecodeContext constr, List keys, BytecodeContext bc, org.objectweb.asm.commons.GeneratorAdapter adapter, org.objectweb.asm.commons.Method method)
           
BytecodeContext(BytecodeContext statConstr, BytecodeContext constr, StringExternalizerWriter externalizer, List keys, org.objectweb.asm.ClassWriter classWriter, String className, org.objectweb.asm.commons.GeneratorAdapter adapter, org.objectweb.asm.commons.Method method, boolean writeLog)
           
 
Method Summary
 boolean changeDoSubFunctions(boolean doSubFunctions)
           
 boolean doSubFunctions()
           
 org.objectweb.asm.commons.GeneratorAdapter getAdapter()
           
 String getClassName()
           
 org.objectweb.asm.ClassWriter getClassWriter()
           
 BytecodeContext getConstructor()
           
 int getCount()
           
 int getCurrentTag()
           
 String getId()
           
 List getKeys()
           
 int getLine()
           
 org.objectweb.asm.commons.Method getMethod()
           
 BytecodeContext getRoot()
           
 BytecodeContext getStaticConstructor()
           
 StringExternalizerWriter getStringExternalizerWriter()
           
 Stack getTryCatchFinallyDataStack()
           
 int incCount()
           
 void popTryCatchFinallyData()
           
 void pushTryCatchFinallyData(TryCatchFinallyData data)
           
 int registerKey(LitString lit)
           
 void resetCount()
           
 void setAdapter(BytecodeContext bc)
           
 void setClassName(String className)
           
 void setClassWriter(org.objectweb.asm.ClassWriter classWriter)
           
 void setCurrentTag(int currentTag)
           
 void setRoot(BytecodeContext root)
           
 void visitLineNumber(int line)
           
 boolean writeLog()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BytecodeContext

public BytecodeContext(BytecodeContext statConstr,
                       BytecodeContext constr,
                       StringExternalizerWriter externalizer,
                       List keys,
                       org.objectweb.asm.ClassWriter classWriter,
                       String className,
                       org.objectweb.asm.commons.GeneratorAdapter adapter,
                       org.objectweb.asm.commons.Method method,
                       boolean writeLog)

BytecodeContext

public BytecodeContext(BytecodeContext statConstr,
                       BytecodeContext constr,
                       List keys,
                       BytecodeContext bc,
                       org.objectweb.asm.commons.GeneratorAdapter adapter,
                       org.objectweb.asm.commons.Method method)
Method Detail

getId

public String getId()
Returns:
the id

getCount

public int getCount()
Returns:
the count

incCount

public int incCount()
Parameters:
count - the count to set

resetCount

public void resetCount()

getAdapter

public org.objectweb.asm.commons.GeneratorAdapter getAdapter()
Returns:
the adapter

setAdapter

public void setAdapter(BytecodeContext bc)
Parameters:
adapter - the adapter to set

getClassWriter

public org.objectweb.asm.ClassWriter getClassWriter()
Returns:
the classWriter

setClassWriter

public void setClassWriter(org.objectweb.asm.ClassWriter classWriter)
Parameters:
classWriter - the classWriter to set

getClassName

public String getClassName()
Returns:
the className

setClassName

public void setClassName(String className)
Parameters:
className - the className to set

registerKey

public int registerKey(LitString lit)

getKeys

public List getKeys()

pushTryCatchFinallyData

public void pushTryCatchFinallyData(TryCatchFinallyData data)

popTryCatchFinallyData

public void popTryCatchFinallyData()

getTryCatchFinallyDataStack

public Stack getTryCatchFinallyDataStack()

getMethod

public org.objectweb.asm.commons.Method getMethod()
Returns:
the method

doSubFunctions

public boolean doSubFunctions()
Returns:
the doSubFunctions

changeDoSubFunctions

public boolean changeDoSubFunctions(boolean doSubFunctions)
Parameters:
doSubFunctions - the doSubFunctions to set
Returns:

getCurrentTag

public int getCurrentTag()
Returns:
the currentTag

setCurrentTag

public void setCurrentTag(int currentTag)
Parameters:
currentTag - the currentTag to set

getStaticConstructor

public BytecodeContext getStaticConstructor()

getConstructor

public BytecodeContext getConstructor()

visitLineNumber

public void visitLineNumber(int line)

getLine

public int getLine()

getRoot

public BytecodeContext getRoot()

setRoot

public void setRoot(BytecodeContext root)

writeLog

public boolean writeLog()

getStringExternalizerWriter

public StringExternalizerWriter getStringExternalizerWriter()


Copyright © 2012 Railo