|
||||||||||
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 loaderMethod Detail |
---|
public String getClassName()
getClassName
in interface Context
public byte[] getInitialBytecode()
getInitialBytecode
in interface Context
public byte[] getCurrentBytecode()
getCurrentBytecode
in interface Context
public void setCurrentBytecode(byte[] bytecode)
setCurrentBytecode
in interface Context
bytecode
- public ClassLoader getLoader()
getLoader
in interface Context
public Set getDefinitions()
getDefinitions
in interface Context
public void markAsAdvised()
markAsAdvised
in interface Context
public void markMadeAdvisable()
public void resetAdvised()
resetAdvised
in interface Context
public boolean isAdvised()
isAdvised
in interface Context
public boolean isMadeAdvisable()
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 dumpDir)
dump
in interface Context
dumpDir
- 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 Context
label
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |