In here, it takes as string, and i get an error:
Exception in thread "main" java.lang.AbstractMethodError: org.eclipse.ocl.ecore.impl.IntegerLiteralExpImpl.setLongSymbol(Ljava/lang/Long;)V
hi
you must use AbstractVisitor in order walking ocl AST
and override visitOperationCallExp method,and useing getIntegerSymbol() such as follow:
List<OCLExpression<EClassifier>> arguments = callExp.getArgument();
if (arguments.isEmpty()) {
argumentResults = Collections.emptyList();
} else {
argumentResults = new java.util.ArrayList<Boolean>(arguments.size());
System.out.printf( arguments.toString());
for (OCLExpression<EClassifier> qual : arguments) {
if(qual instanceof IntegerLiteralExp)
{
valProperty=((IntegerLiteralExp) qual).getIntegerSymbol();
}
argumentResults.add(safeVisit(qual));