|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IWrapper
This Interface gives an analyser the ability to serve as a wrapper or proxy for some other object, such as a lower-level DTFJ object or another analyzer. If an analyzer implements this interface then in general it should be built by calling Analyser loadAnalyser(name, parent). If an attempt is made to create a 'wrapper' analyser using the loadAnalyser(name) or one of the other interfaces such as runAnalyser(name) then the analyser will be created with a null parent. This enables the use of a hierarchy of analysers, and fine-grained analysers that augment individual DTFJ objects. A complex analyser that operates on many objects at once could simply have the whole JavaRuntime as its parent.
Method Summary | |
---|---|
java.lang.String |
getIdentityString()
Provide a way for an analyzer to specify a customized identity string, that will be used in report references created with IAnalysisReport.printIdent(). |
java.lang.Object |
getParent()
Return the parent object of which this analyzer bean represents some aspect (either a core DTFJ object or another analyzer bean). |
void |
setParent(java.lang.Object parent)
Set the parent object of which this analyzer bean represents some aspect (either a core DTFJ object or another analyzer bean). |
Method Detail |
---|
void setParent(java.lang.Object parent) throws java.lang.IllegalArgumentException
parent
- The parent object to set. This parameter is specified as
type Object to enable a common factory, but the method should throw an
exception if the actual class of the parent object supplied is not
compatible with the particular type of analyzer bean that receives it.
java.lang.IllegalArgumentException
- thrown if the parent object supplied is not
compatible with the type of analyzer bean that receives itjava.lang.Object getParent()
This method may optionally be supplemented in subclasses by other methods that return the same parent object, but as a specific type suitable for each particular bean instead of as an Object, thereby providing more type checking at compile time.
java.lang.String getIdentityString() throws com.ibm.dtfj.image.DTFJException
com.ibm.dtfj.image.DTFJException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |