com.yworks.yshrink.ant.AttributesSection 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
package com.yworks.yshrink.ant;
import com.yworks.yguard.common.ant.PatternMatchedSection;
import java.util.Set;
import java.util.HashSet;
import java.util.StringTokenizer;
/**
* @author Michael Schroeder, yWorks GmbH http://www.yworks.com
*/
public class AttributesSection extends PatternMatchedSection {
private Set attributes = new HashSet( );
public Set getAttributes() {
return attributes;
}
public void setName( String attributeStr ) {
StringTokenizer tok = new StringTokenizer( attributeStr, "," );
while ( tok.hasMoreElements() ) {
attributes.add( tok.nextToken().trim() );
}
}
}