com.yworks.yshrink.model.AnnotationUsage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yguard Show documentation
Show all versions of yguard Show documentation
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;
}
}