|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openarchitectureware.workflow.debug.WorkflowElementAdapter
public class WorkflowElementAdapter
The IElementAdapter implementation for WorkflowComponents.
Field Summary | |
---|---|
protected static java.lang.String |
TYPE
|
Constructor Summary | |
---|---|
WorkflowElementAdapter()
|
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 |
SyntaxElementTO |
createElementTO(java.lang.Object element)
computes a SyntaxElementTO 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. in Java we highlight the line to be debugged, but show the surrounding method name in the Launch view) start, end and line should point to the text that shall be highlighted for the element |
SyntaxElementTO |
createEndElementTO(java.lang.Object element)
computes a SyntaxElementTO 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(SyntaxElementTO 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. breakpoint check, subroutine level check) this provides the opportunity to handle specific elements individually Normal return value should be true |
boolean |
shallSuspend(java.lang.Object element,
int flag)
this method is called from the DebugMonitor after all other suspension activities (e.g. breakpoint check, subroutine level check) this provides the opportunity for a last call by the adapter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String TYPE
Constructor Detail |
---|
public WorkflowElementAdapter()
Method Detail |
---|
public java.lang.Object getContext()
getContext
in interface IElementAdapter
public void setContext(java.lang.Object context)
IElementAdapter
setContext
in interface IElementAdapter
context
- the contextpublic java.lang.String getAdapterType()
IElementAdapter
getAdapterType
in interface IElementAdapter
public boolean canHandle(java.lang.Object element)
IElementAdapter
canHandle
in interface IElementAdapter
element
- the element that is going to be debugged
public boolean shallHandle(java.lang.Object element)
IElementAdapter
shallHandle
in interface IElementAdapter
element
- the element that is going to be debugged
public boolean shallSuspend(java.lang.Object element, int flag)
IElementAdapter
shallSuspend
in interface IElementAdapter
element
- the element that is going to be debuggedflag
- one of the values IProcessHandler.PUSH
or IProcessHandler.POP
public boolean isSurroundingElement(java.lang.Object element)
IElementAdapter
isSurroundingElement
in interface IElementAdapter
element
- the element that is debugged currently
public SyntaxElementTO createElementTO(java.lang.Object element)
IElementAdapter
createElementTO
in interface IElementAdapter
element
- the element that is going to be debugged
public SyntaxElementTO createEndElementTO(java.lang.Object element)
IElementAdapter
createEndElementTO
in interface IElementAdapter
element
- the element that is going to be debugged
public java.util.List<NameValuePair> getVariables(java.lang.Object element)
IElementAdapter
element
can be both a syntax element or an arbitrary java
element to collect the member variables from!!
getVariables
in interface IElementAdapter
element
- the current element
public java.lang.String getVariableDetailRep(java.lang.Object element)
IElementAdapter
getVariableDetailRep
in interface IElementAdapter
element
- the element to be considered
public java.lang.String getVariableSimpleRep(java.lang.Object element)
IElementAdapter
getVariableSimpleRep
in interface IElementAdapter
element
- the element to be considered
public boolean checkVariableHasMembers(java.lang.Object element)
IElementAdapter
checkVariableHasMembers
in interface IElementAdapter
element
- the element to be considered
public java.lang.Object findElement(SyntaxElementTO se, java.lang.Object actual, int flag)
IElementAdapter
findElement
in interface IElementAdapter
se
- the syntax element transfer object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |