|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.transform.delegation.ContextImpl
Implementation of the transformation context interface for the delegation weaving.
Constructor Summary | |
ContextImpl(String className,
byte[] bytecode,
ClassLoader loader)
Creates a new context. |
Method Summary | |
void |
addMetaData(Object key,
Object value)
Adds new meta-data for the transformation. |
void |
dump(String dir)
Dump the class to specific directory. |
Object |
getClassAbstraction()
Returns the class abstraction. |
String |
getClassName()
|
byte[] |
getCurrentBytecode()
Returns the current bytecode. |
List |
getDefinitions()
The definitions context (with hierarchical structure) |
byte[] |
getInitialBytecode()
Returns the initial bytecode. |
ClassLoader |
getLoader()
Returns the class loader. |
Object |
getMetaData(Object key)
Returns meta-data for the transformation. |
boolean |
isAdvised()
Checks if the class being transformed has beed advised. |
boolean |
isPrepared()
Checks if the class is prepared. |
boolean |
isReadOnly()
Checks if the context is read-only. |
void |
markAsAdvised()
Marks the class being transformed as advised. |
void |
markAsPrepared()
Marks the class as prepared. |
void |
markAsReadOnly()
Marks the context as read-only. |
void |
resetAdvised()
Resets the isAdviced flag. |
void |
setCurrentBytecode(byte[] bytecode)
Sets the current bytecode. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ContextImpl(String className, byte[] bytecode, ClassLoader loader)
loader
- the class loaderMethod Detail |
public String getClassName()
getClassName
in interface Context
public byte[] getInitialBytecode()
Context
getInitialBytecode
in interface Context
public byte[] getCurrentBytecode()
Context
getCurrentBytecode
in interface Context
public void setCurrentBytecode(byte[] bytecode)
setCurrentBytecode
in interface Context
bytecode
- public Object getClassAbstraction()
getClassAbstraction
in interface Context
public ClassLoader getLoader()
getLoader
in interface Context
public List getDefinitions()
getDefinitions
in interface Context
public void markAsAdvised()
markAsAdvised
in interface Context
public void markAsPrepared()
markAsPrepared
in interface Context
public void resetAdvised()
resetAdvised
in interface Context
public boolean isAdvised()
isAdvised
in interface Context
public boolean isPrepared()
isPrepared
in interface Context
public void markAsReadOnly()
markAsReadOnly
in interface Context
public boolean isReadOnly()
isReadOnly
in interface Context
public Object getMetaData(Object key)
getMetaData
in interface Context
key
- the key
public void addMetaData(Object key, Object value)
addMetaData
in interface Context
key
- the keyvalue
- the valuepublic void dump(String dir)
dump
in interface Context
dir
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |