OCL Pivot - Visitor implementation [message #1312588] |
Thu, 24 April 2014 07:31  |
Eclipse User |
|
|
|
I want to have custom implementation of org.eclipse.ocl.examples.pivot.util.visitor. The motive of this custom implementation is to determine the place of specific property call in an OCL statement.
I am trying to override following
public Object visitPropertyCallExp(
org.eclipse.ocl.examples.pivot.PropertyCallExp callExp)
Now i want to have start and ending position of property call in OCL statement.
I have already implemented this feature in classic ocl implementation and i used
protected Integer handlePropertyCallExp(PropertyCallExp<EClassifier, EStructuralFeature> callExp, Integer sourceResult, List<Integer> qualifierResults)
and i was able to get start and end positioning by callExp.getStartPosition(), callExp.getEndPosition()
Now org.eclipse.ocl.examples.pivot.PropertyCallExp does not provide methods for start and end position.
Do you have any idea how to get start and end position of property call in OCL statement using Pivot package?
[Updated on: Thu, 24 April 2014 07:32] by Moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|