|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ElementAdapter
An adapter to the DebugMonitor that handle all element type specific activities on the runtime
side.
That is process specific decisions and syntax element and variable normalisation.
| Method Summary | |
|---|---|
boolean |
canHandle(java.lang.Object element)
returns true, if the implementation handles the element type |
boolean |
checkVariableHasMembers(java.lang.Object element)
check if the variable representation of this element shall show members |
SyntaxElement |
createElement(java.lang.Object element)
computes a SyntaxElement for a specific element type the containerName should be the name of the underlying file name the element name should be the name of the surrounding element (e.g. |
SyntaxElement |
createEndElementTO(java.lang.Object element)
computes a SyntaxElement for a surrounding element representing the end position to be highlighted before returning the containerName should be the name of the file that holds the element the element name should be a description of the end element start, end and line should point to the end text to be highlighted |
java.lang.Object |
findElement(SyntaxElement se,
java.lang.Object actual,
int flag)
find the element that corresponds to the given syntax element information |
java.lang.String |
getAdapterType()
a unique type must be provided for each implementation |
java.lang.Object |
getContext()
|
java.lang.String |
getVariableDetailRep(java.lang.Object element)
compute the string representation of the element ready to display in the variables detail view. |
java.util.List<NameValuePair> |
getVariables(java.lang.Object element)
collect all available variables for a given element. |
java.lang.String |
getVariableSimpleRep(java.lang.Object element)
compute a shorter string representation of the element ready to display in the variables view. |
boolean |
isSurroundingElement(java.lang.Object element)
returns whether the element has a body and debugger shall stop again at the end of the execution of that element |
void |
setContext(java.lang.Object context)
set the current execution context the context should be cached and can be used to collect information about elements |
boolean |
shallHandle(java.lang.Object element)
this method is called from the DebugMonitor prior to all other suspension activities (e.g. |
boolean |
shallSuspend(java.lang.Object element,
int flag)
this method is called from the DebugMonitor after all other suspension activities (e.g. |
| Method Detail |
|---|
boolean canHandle(java.lang.Object element)
element - the element that is going to be debugged
boolean shallHandle(java.lang.Object element)
element - the element that is going to be debugged
boolean shallSuspend(java.lang.Object element,
int flag)
lastState - the consolidated decisions previously askedelement - the element that is going to be debuggedflag - one of the values IProcessHandler.PUSH or IProcessHandler.POP
SyntaxElement createElement(java.lang.Object element)
element - the element that is going to be debugged
boolean isSurroundingElement(java.lang.Object element)
element - the element that is debugged currently
SyntaxElement createEndElementTO(java.lang.Object element)
element - the element that is going to be debugged
java.lang.Object findElement(SyntaxElement se,
java.lang.Object actual,
int flag)
se - the syntax element transfer objectflag - actual -
java.util.List<NameValuePair> getVariables(java.lang.Object element)
elementcan be both a syntax element or an arbitrary java
element to collect the member variables from!!
element - the current element
java.lang.String getVariableDetailRep(java.lang.Object element)
element - the element to be considered
java.lang.String getVariableSimpleRep(java.lang.Object element)
element - the element to be considered
boolean checkVariableHasMembers(java.lang.Object element)
element - the element to be considered
void setContext(java.lang.Object context)
context - the contextjava.lang.Object getContext()
java.lang.String getAdapterType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||