public void visitProgramField(ProgramClass programClass, ProgramField programField) { String newName = MemberObfuscator.newMemberName(programField); if (newName != null) { ps.println( " " + // lineNumberRange(programClass, programField) + ClassUtil.externalFullFieldDescription( 0, programField.getName(programClass), programField.getDescriptor(programClass)) + " -> " + newName); } }
private void writeFieldSpecification(List memberSpecifications) { if (memberSpecifications != null) { for (int index = 0; index < memberSpecifications.size(); index++) { MemberSpecification memberSpecification = (MemberSpecification) memberSpecifications.get(index); writer.print(" "); // Write out the required annotation, if any. if (memberSpecification.annotationType != null) { writer.print(ConfigurationConstants.ANNOTATION_KEYWORD); writer.println(ClassUtil.externalType(memberSpecification.annotationType)); writer.print(" "); } // Write out the field access flags. writer.print( ClassUtil.externalFieldAccessFlags( memberSpecification.requiredUnsetAccessFlags, ConfigurationConstants.NEGATOR_KEYWORD)); writer.print( ClassUtil.externalFieldAccessFlags(memberSpecification.requiredSetAccessFlags)); // Write out the field name and descriptor. String name = memberSpecification.name; String descriptor = memberSpecification.descriptor; writer.print( descriptor == null ? name == null ? ConfigurationConstants.ANY_FIELD_KEYWORD : ConfigurationConstants.ANY_TYPE_KEYWORD + ' ' + name : ClassUtil.externalFullFieldDescription( 0, name == null ? ConfigurationConstants.ANY_CLASS_MEMBER_KEYWORD : name, descriptor)); writer.println(ConfigurationConstants.SEPARATOR_KEYWORD); } } }