| java.lang.Object com.uwyn.rife.instrument.ClassInterfaceDetector
All known Subclasses: com.uwyn.rife.engine.instrument.ElementDetector, com.uwyn.rife.continuations.instrument.ContinuableDetector,
ClassInterfaceDetector | public class ClassInterfaceDetector (Code) | | Detects whether a class implements a particular interface by analyzing the
bytecode instead of loading the class and performing reflection calls.
author: Geert Bevin (gbevin[remove] at uwyn dot com) version: $Revision: 3815 $ since: 1.6 |
Method Summary | |
public boolean | detect(byte[] bytes, boolean doAutoReload) Perform the detection. |
ClassInterfaceDetector | public ClassInterfaceDetector(ClassBytesProvider bytesProvider, String internalInterfaceNameInterned)(Code) | | Creates a new instance of the interface detector.
Parameters: bytesProvider - the bytecode provider that will be used to load thebytes of the parent classes or interfaces Parameters: internalInterfaceNameInterned - the name of the interface that shouldbe detected, it should be in the internal bytecode naming format(/ instead of .) and it should be interned. since: 1.6 |
detect | public boolean detect(byte[] bytes, boolean doAutoReload) throws ClassNotFoundException(Code) | | Perform the detection.
Parameters: bytes - the bytecode of the class that is being analyzed Parameters: doAutoReload - indicator if the class should be automaticallyreloaded after a modification to the sources, in case the ClassBytesProvider supports this true if the detection was successful; or false otherwise throws: ClassNotFoundException - |
|
|