|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.tromer.jie.visitor.NullObjectVisitor | +--org.tromer.jie.Opportunity
Base class for all instrumentation opportunity classes. This is a NullObjectVisitor with a bit of added functionality shared by all opportunity classes.
Inner Class Summary | |
static class |
Opportunity.EntryExitOpp
Base class for all opportunities that have two configurable aspects: entry action template and exit action template. |
static class |
Opportunity.SingleActionOpp
Base class for all opportunities that have one configurable aspect: action template. |
Field Summary | |
static java.lang.String |
classSuffix
Suffix added to all concrete opportunity classes: "Opp". |
Constructor Summary | |
Opportunity()
|
Method Summary | |
void |
doneVisiting()
Must be called from outside when the visit process has been completed. |
java.lang.String |
getOppName()
Gets the user-displayable name of this opporunity. |
static java.lang.String |
getOppNameByClass(java.lang.Class c)
Gets the user-displayable name of an opporunity, using its class. |
int |
getTransformsCount()
Get the number of transformations created so far. |
protected void |
initOpp(java.lang.Object[] actionData)
Initializes generic aspects of the opportunity. |
protected void |
log(java.lang.String msg)
Write a line to the log stream (if one was set using setLog() ). |
protected boolean |
logging()
Returns true iff logging is enabled. |
protected InstrumTransform |
newContextlessTransform(java.lang.Object transformContext)
Similar to newTransform , but does not assign the macro
context. |
protected InstrumTransform |
newTransform(Node node,
java.lang.Object transformAndMacroContext)
Creates a new instance of InstrumTransform, representing an instrumentation transformation carried out by this opportunity. |
void |
setLog(java.io.OutputStream log)
Can be used to set (or change) the output stream for the log file. |
Methods inherited from class org.tromer.jie.visitor.NullObjectVisitor |
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit,
visit |
Methods inherited from class java.lang.Object |
|
Field Detail |
public static final java.lang.String classSuffix
Constructor Detail |
public Opportunity()
Method Detail |
public void doneVisiting()
public void setLog(java.io.OutputStream log)
protected void initOpp(java.lang.Object[] actionData)
actionData
- Accepts an array of objects that completely define the action carried out
by the instance of the instrumentation opportunity.
These objects must implement the getHash() method as outlined in the Java
Language Definition. The getHash() results of all the objects are hashed
together to produce the first field of the JIID.public java.lang.String getOppName()
public static java.lang.String getOppNameByClass(java.lang.Class c)
public int getTransformsCount()
protected InstrumTransform newTransform(Node node, java.lang.Object transformAndMacroContext)
protected InstrumTransform newContextlessTransform(java.lang.Object transformContext)
newTransform
, but does not assign the macro
context. Call InstrumTransform.setMacroContext
later.protected void log(java.lang.String msg)
setLog()
).protected boolean logging()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |