|
|||||||||||
| 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 loader| Method Detail |
public String getClassName()
getClassName in interface Contextpublic byte[] getInitialBytecode()
Context
getInitialBytecode in interface Contextpublic byte[] getCurrentBytecode()
Context
getCurrentBytecode in interface Contextpublic void setCurrentBytecode(byte[] bytecode)
setCurrentBytecode in interface Contextbytecode - public Object getClassAbstraction()
getClassAbstraction in interface Contextpublic ClassLoader getLoader()
getLoader in interface Contextpublic List getDefinitions()
getDefinitions in interface Contextpublic void markAsAdvised()
markAsAdvised in interface Contextpublic void markAsPrepared()
markAsPrepared in interface Contextpublic void resetAdvised()
resetAdvised in interface Contextpublic boolean isAdvised()
isAdvised in interface Contextpublic boolean isPrepared()
isPrepared in interface Contextpublic void markAsReadOnly()
markAsReadOnly in interface Contextpublic boolean isReadOnly()
isReadOnly in interface Contextpublic Object getMetaData(Object key)
getMetaData in interface Contextkey - the key
public void addMetaData(Object key,
Object value)
addMetaData in interface Contextkey - the keyvalue - the valuepublic void dump(String dir)
dump in interface Contextdir -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||