Esempio n. 1
0
  public void visitStringConstant(Clazz clazz, StringConstant stringConstant) {
    if (shouldBeMarkedAsUsed(stringConstant)) {
      markAsUsed(stringConstant);

      markConstant(clazz, stringConstant.u2stringIndex);

      // Mark the referenced class and class member, if any.
      stringConstant.referencedClassAccept(this);
      stringConstant.referencedMemberAccept(this);
    }
  }
Esempio n. 2
0
  public void visitStringConstant(Clazz clazz, StringConstant stringConstant) {
    if (shouldBeMarkedAsUsed(stringConstant)) {
      markAsUsed(stringConstant);

      markConstant(clazz, stringConstant.u2stringIndex);

      // Mark the referenced class and its parameterless constructor,
      // if the string is being used in a Class.forName construct.
      // stringConstant.referencedClassAccept(dynamicClassMarker);

      // Mark the referenced class or class member, if any.
      stringConstant.referencedClassAccept(this);
      stringConstant.referencedMemberAccept(this);
    }
  }
 public void visitStringConstant(Clazz clazz, StringConstant stringConstant) {
   // Mark the referenced field, if any.
   stringConstant.referencedMemberAccept(this);
 }