boolean isFound = false;\r
Enumeration e = (Enumeration)v;\r
\r
- // TODO: add .elements and .size \r
- if(enumeration.equals(et.image)) {\r
+ if(enumeration.equals(et.image) ||\r
+ "size".equals(et.image) || \r
+ "elements".equals(et.image)){\r
// The full enumeration\r
isFound = true;\r
} else {\r
}\r
range.append("]");\r
\r
- Variable prevVar = getVariable(variable.getParentConfiguration(), prevToken);\r
+ Variable prevVar = getVariable(variable.getParentConfiguration(), prevToken.trim());\r
result.append(rangeToIndexes(prevVar, range.toString()));\r
} else {\r
result.append(nextToken);\r