|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Context
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. |
String |
getClassName()
|
byte[] |
getCurrentBytecode()
Returns the current bytecode. |
Set |
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 been advised. |
boolean |
isReadOnly()
Checks if the context is read-only. |
void |
markAsAdvised()
Marks the class being transformed as advised. |
void |
markAsReadOnly()
Marks the context as read-only. |
void |
resetAdvised()
Resets the isAdviced flag. |
int |
resolveLineNumberInfo(org.objectweb.asm.Label label)
Tries to resolve the line number from the given label |
void |
setCurrentBytecode(byte[] bytecode)
Sets the current bytecode. |
| Method Detail |
|---|
String getClassName()
void setCurrentBytecode(byte[] bytecode)
bytecode - byte[] getInitialBytecode()
byte[] getCurrentBytecode()
ClassLoader getLoader()
Set getDefinitions()
void markAsAdvised()
void resetAdvised()
boolean isAdvised()
void markAsReadOnly()
boolean isReadOnly()
Object getMetaData(Object key)
key - the key
void addMetaData(Object key,
Object value)
key - the keyvalue - the valuevoid dump(String dir)
dir - int resolveLineNumberInfo(org.objectweb.asm.Label label)
label -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||