public String parse(String value) throws UnableToCompleteException { JEnumConstant c = values.get(value); if (c != null) { return String.format("%s.%s", c.getEnclosingType().getQualifiedSourceName(), value); } return super.parse(value); }
EnumAttributeParser(FieldReferenceConverter converter, JEnumType enumType, MortalLogger logger) { super(converter, enumType, logger); JEnumConstant[] constants = enumType.getEnumConstants(); for (JEnumConstant c : constants) { values.put(c.getName(), c); } }