|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for the different transformation context implementations. FIXME crap: abstract method on an interface. Refactor some in between if we are sure to keep the delegation model
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. |
Method Detail |
public String getClassName()
public void setCurrentBytecode(byte[] bytecode)
bytecode
- public byte[] getInitialBytecode()
public byte[] getCurrentBytecode()
public Object getClassAbstraction()
public ClassLoader getLoader()
public List getDefinitions()
public void markAsAdvised()
public void markAsPrepared()
public void resetAdvised()
public boolean isAdvised()
public boolean isPrepared()
public void markAsReadOnly()
public boolean isReadOnly()
public Object getMetaData(Object key)
key
- the key
public void addMetaData(Object key, Object value)
key
- the keyvalue
- the valuepublic void dump(String dir)
dir
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |