|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.aspectwerkz.transform.inlining.ContextImpl
public class 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 |
addEmittedJoinPoint(EmittedJoinPoint jp)
Adds a new EmittedJoinPoint |
void |
addLineNumberInfo(org.objectweb.asm.Label label,
int lineNumber)
|
void |
addMetaData(Object key,
Object value)
Adds new meta-data for the transformation. |
void |
dump(String dumpDir)
Dumps the class to specific directory. |
String |
getClassName()
|
byte[] |
getCurrentBytecode()
Returns the current bytecode. |
Set |
getDefinitions()
The definitions context (with hierarchical structure) |
List |
getEmittedJoinPoints()
Returns all the EmittedJoinPoints |
byte[] |
getInitialBytecode()
Returns the initial bytecode. |
ClassLoader |
getLoader()
Returns the class loader. |
Object |
getMetaData(Object key)
Returns meta-data for the transformation. |
long |
getSerialVerUid()
|
boolean |
isAdvised()
Checks if the class being transformed has beed advised. |
boolean |
isMadeAdvisable()
Checks if the class has been made advisable. |
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 |
markMadeAdvisable()
Marks the class as made advisable. |
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. |
void |
setSerialVerUid(long initialSerialVerUid)
|
| 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()
getInitialBytecode in interface Contextpublic byte[] getCurrentBytecode()
getCurrentBytecode in interface Contextpublic void setCurrentBytecode(byte[] bytecode)
setCurrentBytecode in interface Contextbytecode - public ClassLoader getLoader()
getLoader in interface Contextpublic Set getDefinitions()
getDefinitions in interface Contextpublic void markAsAdvised()
markAsAdvised in interface Contextpublic void markMadeAdvisable()
public void resetAdvised()
resetAdvised in interface Contextpublic boolean isAdvised()
isAdvised in interface Contextpublic boolean isMadeAdvisable()
public 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 dumpDir)
dump in interface ContextdumpDir - public void addEmittedJoinPoint(EmittedJoinPoint jp)
jp - public List getEmittedJoinPoints()
public void setSerialVerUid(long initialSerialVerUid)
public long getSerialVerUid()
public void addLineNumberInfo(org.objectweb.asm.Label label,
int lineNumber)
public int resolveLineNumberInfo(org.objectweb.asm.Label label)
resolveLineNumberInfo in interface Contextlabel -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||