Ejemplo 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);
    }
  }
Ejemplo 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) {
   // Let the visitor visit the class referenced in the string constant.
   stringConstant.referencedClassAccept(classVisitor);
 }