|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openarchitectureware.expression.debug.ExpressionElementAdapter
org.openarchitectureware.xpand2.debug.XpandElementAdapter
public class XpandElementAdapter
The IElementAdapter implementation for Xpand statements.
Field Summary | |
---|---|
static java.lang.String |
TYPE
|
Fields inherited from class org.openarchitectureware.expression.debug.ExpressionElementAdapter |
---|
context, pres, specials |
Constructor Summary | |
---|---|
XpandElementAdapter()
|
Method Summary | |
---|---|
boolean |
canHandle(java.lang.Object element)
returns true, if the implementation handles the element type |
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.util.List<NameValuePair> |
getVariables(java.lang.Object element)
collect all available variables for a given element. |
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 |
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 |
Methods inherited from class org.openarchitectureware.expression.debug.ExpressionElementAdapter |
---|
checkVariableHasMembers, createElementTO, getAllFeatures, getAllVisibleVariables, getContext, getVariableDetailRep, getVariableSimpleRep, setContext, shallSuspend |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TYPE
Constructor Detail |
---|
public XpandElementAdapter()
Method Detail |
---|
public java.lang.String getAdapterType()
IElementAdapter
getAdapterType
in interface IElementAdapter
getAdapterType
in class ExpressionElementAdapter
public boolean canHandle(java.lang.Object element)
IElementAdapter
canHandle
in interface IElementAdapter
canHandle
in class ExpressionElementAdapter
element
- the element that is going to be debugged
public boolean shallHandle(java.lang.Object element)
IElementAdapter
shallHandle
in interface IElementAdapter
shallHandle
in class ExpressionElementAdapter
element
- the element that is going to be debugged
public boolean isSurroundingElement(java.lang.Object element)
IElementAdapter
isSurroundingElement
in interface IElementAdapter
isSurroundingElement
in class ExpressionElementAdapter
element
- the element that is debugged currently
public SyntaxElementTO createEndElementTO(java.lang.Object element)
IElementAdapter
createEndElementTO
in interface IElementAdapter
createEndElementTO
in class ExpressionElementAdapter
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
getVariables
in class ExpressionElementAdapter
element
- the current element
public java.lang.Object findElement(SyntaxElementTO se, java.lang.Object actual, int flag)
IElementAdapter
findElement
in interface IElementAdapter
findElement
in class ExpressionElementAdapter
se
- the syntax element transfer object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |