|
TPTP 4.5.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.tptp.platform.instrumentation.ui.internal.sourceeditor.actions.AbstractObjectActionDelegate
org.eclipse.tptp.platform.instrumentation.ui.internal.sourceeditor.actions.AbstractInstrumentAddAction
public abstract class AbstractInstrumentAddAction
This class represents common logic functions of add BtM source instrument(ARM/CBE)
| Constructor Summary | |
|---|---|
AbstractInstrumentAddAction()
|
|
| Method Summary | |
|---|---|
protected abstract java.util.Map |
getDetermineInsertInfo(org.eclipse.jdt.core.IMethod method)
|
protected java.lang.String |
getFullMethodName(org.eclipse.jdt.core.IMethod method)
|
protected abstract java.lang.String |
getMethodEntryInsertedText(org.eclipse.jdt.core.IMethod method)
retrive inserted source code in begin braces of specified method. return source code text will be insert after begin braces of method. subclass must override this method to return actual inserted source code |
protected int |
getMethodEntryPosition(org.eclipse.jdt.core.dom.MethodDeclaration method)
return begin location of inserting customized source code(ARM,CBE) |
protected abstract java.lang.String |
getMethodExitInsertedText(org.eclipse.jdt.core.IMethod method)
|
protected int |
getMethodExitPosition(org.eclipse.jdt.core.dom.MethodDeclaration method)
return end location of inserting customized source code(ARM,JMX,CBE) |
protected void |
processBtmInstrumentAction(org.eclipse.jdt.core.dom.MethodDeclaration methodDeclaration,
org.eclipse.jdt.core.IMethod method,
org.eclipse.text.edits.MultiTextEdit edit,
java.lang.StringBuffer msgBuffer)
Center entry to process BtM add/remove instrumentaion code to specified method. |
protected void |
processOtherInsertTask(org.eclipse.text.edits.MultiTextEdit edit,
org.eclipse.jdt.core.IMethod method,
org.eclipse.jdt.core.dom.MethodDeclaration methodNode)
process other task of inserting code that can't including both entry and exit |
| Methods inherited from class org.eclipse.tptp.platform.instrumentation.ui.internal.sourceeditor.actions.AbstractObjectActionDelegate |
|---|
getWarningMessage, run, selectionChanged, setActivePart |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractInstrumentAddAction()
| Method Detail |
|---|
protected void processBtmInstrumentAction(org.eclipse.jdt.core.dom.MethodDeclaration methodDeclaration,
org.eclipse.jdt.core.IMethod method,
org.eclipse.text.edits.MultiTextEdit edit,
java.lang.StringBuffer msgBuffer)
AbstractObjectActionDelegate
processBtmInstrumentAction in class AbstractObjectActionDelegatemethodDeclaration - method AST node associated with method needed to add/remove codemethod - method needed to add/remove codeedit - multi-text edit can be used to aggregate several edits into one editprotected int getMethodEntryPosition(org.eclipse.jdt.core.dom.MethodDeclaration method)
method - need to insert method AST node
protected int getMethodExitPosition(org.eclipse.jdt.core.dom.MethodDeclaration method)
method - need to insert method AST node
protected void processOtherInsertTask(org.eclipse.text.edits.MultiTextEdit edit,
org.eclipse.jdt.core.IMethod method,
org.eclipse.jdt.core.dom.MethodDeclaration methodNode)
edit - multi text editmethod - method needed to insert codemethodNode - AST node of method needed to insert codeprotected abstract java.lang.String getMethodEntryInsertedText(org.eclipse.jdt.core.IMethod method)
method -
protected abstract java.lang.String getMethodExitInsertedText(org.eclipse.jdt.core.IMethod method)
method -
protected abstract java.util.Map getDetermineInsertInfo(org.eclipse.jdt.core.IMethod method)
method - TODO
protected java.lang.String getFullMethodName(org.eclipse.jdt.core.IMethod method)
method -
|
TPTP 4.5.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||