Esempio n. 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);
  }
Esempio n. 2
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);
      }
    }