Class ExposeSection


  • public class ExposeSection
    extends Exclude
    Used by ant to handle the expose element.
    • Field Detail

      • classes

        protected java.util.List classes
      • packages

        protected java.util.List packages
      • patterns

        protected java.util.List patterns
      • methods

        protected java.util.List methods
      • fields

        protected java.util.List fields
      • attributes

        protected java.util.List attributes
      • lineNumberTables

        protected java.util.List lineNumberTables
      • sourceFiles

        protected java.util.List sourceFiles
    • Constructor Detail

      • ExposeSection

        public ExposeSection​(ObfuscatorTask task)
        Instantiates a new Expose section.
        Parameters:
        task - the task
    • Method Detail

      • addPatternSet

        public void addPatternSet​(org.apache.tools.ant.types.PatternSet ps)
        Add pattern set.
        Parameters:
        ps - the ps
      • createMethod

        public MethodSection createMethod()
        Create method method section.
        Returns:
        the method section
      • newMethodSection

        protected MethodSection newMethodSection()
        Instantiates a method section, subclasses may provide custom implementations.
        Returns:
        the new method section
      • createField

        public FieldSection createField()
        Create field field section.
        Returns:
        the field section
      • newFieldSection

        protected FieldSection newFieldSection()
        Instantiates a field section, subclasses may provide custom implementations.
        Returns:
        the new field section
      • createClass

        public ClassSection createClass()
        Create class class section.
        Returns:
        the class section
      • newClassSection

        protected ClassSection newClassSection​(YGuardBaseTask bt)
        Instantiates a class section, subclasses may provide custom implementations.
        Returns:
        the new class section
      • createPackage

        public PackageSection createPackage()
        Create package package section.
        Returns:
        the package section
      • newPackageSection

        protected PackageSection newPackageSection()
        Instantiates a package section, subclasses may provide custom implementations.
        Returns:
        the new package section
      • createAttribute

        public AttributesSection createAttribute()
        Create attribute attributes section.
        Returns:
        the attributes section
      • newAttributesSection

        protected AttributesSection newAttributesSection​(YGuardBaseTask obfuscatorTask)
        Instantiates an attributes section, subclasses may provide custom implementations.
        Returns:
        the new attributes section
      • createLineNumberTable

        public LineNumberTableSection createLineNumberTable()
        Create line number table line number table section.
        Returns:
        the line number table section
      • newLineNumberTableSection

        protected LineNumberTableSection newLineNumberTableSection​(YGuardBaseTask obfuscatorTask)
        Instantiates a line number table section, subclasses may provide custom implementations.
        Returns:
        the new line number table section
      • createSourceFile

        public SourceFileSection createSourceFile()
        Create source file source file section.
        Returns:
        the source file section
      • newSourceFileSection

        protected SourceFileSection newSourceFileSection​(YGuardBaseTask obfuscatorTask)
        Instantiates a source file section, subclasses may provide custom implementations.
        Returns:
        the new source file section
      • createEntries

        public java.util.Collection createEntries​(java.util.Collection srcJars)
                                           throws java.io.IOException
        Create entries collection.
        Parameters:
        srcJars - the src jars
        Returns:
        the collection
        Throws:
        java.io.IOException - the io exception
      • getClasses

        public java.util.List getClasses()
        Gets classes.
        Returns:
        the classes
      • getPackages

        public java.util.List getPackages()
        Gets packages.
        Returns:
        the packages
      • getPatterns

        public java.util.List getPatterns()
        Gets patterns.
        Returns:
        the patterns
      • getMethods

        public java.util.List getMethods()
        Gets methods.
        Returns:
        the methods
      • getFields

        public java.util.List getFields()
        Gets fields.
        Returns:
        the fields
      • getAttributes

        public java.util.List getAttributes()
        Gets attributes.
        Returns:
        the attributes
      • getLineNumberTables

        public java.util.List getLineNumberTables()
        Gets line number tables.
        Returns:
        the line number tables
      • getSourceFiles

        public java.util.List getSourceFiles()
        Gets source files.
        Returns:
        the source files