Beispiel #1
0
  protected void markProgramFieldBody(ProgramClass programClass, ProgramField programField) {
    // Mark the name and descriptor.
    markConstant(programClass, programField.u2nameIndex);
    markConstant(programClass, programField.u2descriptorIndex);

    // Mark the attributes.
    programField.attributesAccept(programClass, this);

    // Mark the classes referenced in the descriptor string.
    programField.referencedClassesAccept(this);
  }
 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);
   }
 }
Beispiel #3
0
    public void visitProgramField(ProgramClass programClass, ProgramField programField) {
      // Has the method already been referenced?
      if (isPossiblyUsed(programField)) {
        markAsUsed(programField);

        // Mark the name and descriptor.
        markConstant(programClass, programField.u2nameIndex);
        markConstant(programClass, programField.u2descriptorIndex);

        // Mark the attributes.
        programField.attributesAccept(programClass, UsageMarker.this);

        // Mark the classes referenced in the descriptor string.
        programField.referencedClassesAccept(UsageMarker.this);
      }
    }