com.yworks.common.ant.EntryPointsSection 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.common.ant;
import com.yworks.yshrink.ant.ClassSection;
import com.yworks.yshrink.ant.FieldSection;
import com.yworks.yshrink.ant.MethodSection;
import java.util.ArrayList;
import java.util.List;
/**
* ANT entryPoint section
*/
public class EntryPointsSection extends Exclude {
private List methodSections = new ArrayList( 5 );
private List classSections = new ArrayList( 5 );
private List fieldSections = new ArrayList( 5 );
private List attributesSections = new ArrayList( 1 );
/**
* Instantiates a new Entry points section.
*
* @param task the task
*/
public EntryPointsSection( YGuardBaseTask task ) {
super( task );
}
/**
* Add configured method.
*
* @param ms the ms
*/
public void addConfiguredMethod( MethodSection ms ) {
this.methodSections.add( ms );
}
/**
* Add configured class.
*
* @param cs the cs
*/
public void addConfiguredClass( ClassSection cs ) {
this.classSections.add( cs );
}
/**
* Add configured field.
*
* @param fs the fs
*/
public void addConfiguredField( FieldSection fs ) {
this.fieldSections.add( fs );
}
/**
* Add configured attribute.
*
* @param as the as
*/
public void addConfiguredAttribute( AttributesSection as ) {
this.attributesSections.add( as );
}
/**
* Gets method sections.
*
* @return the method sections
*/
public List getMethodSections() {
return methodSections;
}
/**
* Gets class sections.
*
* @return the class sections
*/
public List getClassSections() {
return classSections;
}
/**
* Gets field sections.
*
* @return the field sections
*/
public List getFieldSections() {
return fieldSections;
}
/**
* Gets attributes sections.
*
* @return the attributes sections
*/
public List getAttributesSections() {
return attributesSections;
}
}