All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yworks.yshrink.model.AnnotationUsage Maven / Gradle / Ivy

Go to download

The open-source Java obfuscation tool working with Ant and Gradle by yWorks - the diagramming experts

The newest version!
package com.yworks.yshrink.model;

import java.util.List;
import java.util.ArrayList;

/**
 * The type Annotation usage.
 *
 * @author schroede
 */
public class AnnotationUsage {
  private String descriptor;

  private List fieldUsages = new ArrayList();

  /**
   * Instantiates a new Annotation usage.
   *
   * @param descriptor the descriptor
   */
  public AnnotationUsage(String descriptor) {
    this.descriptor = descriptor;
  }

  /**
   * Add field usage.
   *
   * @param name the name
   */
  public void addFieldUsage(String name) {
    if (name != null) {
      fieldUsages.add(name);
    }
  }

  /**
   * Gets descriptor.
   *
   * @return the descriptor
   */
  public String getDescriptor() {
    return descriptor;
  }

  /**
   * Gets field usages.
   *
   * @return the field usages
   */
  public List getFieldUsages() {
    return fieldUsages;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy