| java.lang.Object com.uwyn.rife.site.instrument.ConstrainedDetector
ConstrainedDetector | public class ConstrainedDetector (Code) | | Detects whether class implements the
Constrainted interface or not,
by analyzing its bytecode.
author: Geert Bevin (gbevin[remove] at uwyn dot com) version: $Revision: 3811 $ since: 1.6 |
Constructor Summary | |
public | ConstrainedDetector(ClassBytesLoader bytesLoader) Creates new instance by providing a loader that is able to retrieve the
bytes of any parent classes that are extended by the class that is
being analyzed. |
Method Summary | |
public boolean | isConstrained(String internedClassname, byte[] bytes) Verifies if the Constrained interface is implemented by the class that
is defined by the bytes that are provided. |
ConstrainedDetector | public ConstrainedDetector(ClassBytesLoader bytesLoader)(Code) | | Creates new instance by providing a loader that is able to retrieve the
bytes of any parent classes that are extended by the class that is
being analyzed.
Parameters: bytesLoader - the loader that will be used to retrieve the bytesof the additional classes since: 1.6 |
isConstrained | public boolean isConstrained(String internedClassname, byte[] bytes) throws ClassBytesNotFoundException(Code) | | Verifies if the Constrained interface is implemented by the class that
is defined by the bytes that are provided.
Parameters: internedClassname - the class name as the previously internedstring Parameters: bytes - the array of bytes that defines the class that needs to beanalyzed true if the analyzed class implements the constrainedinterface; or false otherwise exception: ClassBytesNotFoundException - when the bytes of a parent classcan be found since: 1.6 |
|
|