Package com.yworks.yguard.ant
Class ExposeSection
- java.lang.Object
-
- com.yworks.common.ant.Exclude
-
- com.yworks.yguard.ant.ExposeSection
-
public class ExposeSection extends Exclude
Used by ant to handle theexposeelement.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Listattributesprotected java.util.Listclassesprotected java.util.Listfieldsprotected java.util.ListlineNumberTablesprotected java.util.Listmethodsprotected java.util.Listpackagesprotected java.util.Listpatternsprotected java.util.ListsourceFiles
-
Constructor Summary
Constructors Constructor Description ExposeSection(ObfuscatorTask task)Instantiates a new Expose section.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPatternSet(org.apache.tools.ant.types.PatternSet ps)Add pattern set.AttributesSectioncreateAttribute()Create attribute attributes section.ClassSectioncreateClass()Create class class section.java.util.CollectioncreateEntries(java.util.Collection srcJars)Create entries collection.FieldSectioncreateField()Create field field section.LineNumberTableSectioncreateLineNumberTable()Create line number table line number table section.MethodSectioncreateMethod()Create method method section.PackageSectioncreatePackage()Create package package section.SourceFileSectioncreateSourceFile()Create source file source file section.java.util.ListgetAttributes()Gets attributes.java.util.ListgetClasses()Gets classes.java.util.ListgetFields()Gets fields.java.util.ListgetLineNumberTables()Gets line number tables.java.util.ListgetMethods()Gets methods.java.util.ListgetPackages()Gets packages.java.util.ListgetPatterns()Gets patterns.java.util.ListgetSourceFiles()Gets source files.protected AttributesSectionnewAttributesSection(YGuardBaseTask obfuscatorTask)Instantiates an attributes section, subclasses may provide custom implementations.protected ClassSectionnewClassSection(YGuardBaseTask bt)Instantiates a class section, subclasses may provide custom implementations.protected FieldSectionnewFieldSection()Instantiates a field section, subclasses may provide custom implementations.protected LineNumberTableSectionnewLineNumberTableSection(YGuardBaseTask obfuscatorTask)Instantiates a line number table section, subclasses may provide custom implementations.protected MethodSectionnewMethodSection()Instantiates a method section, subclasses may provide custom implementations.protected PackageSectionnewPackageSection()Instantiates a package section, subclasses may provide custom implementations.protected SourceFileSectionnewSourceFileSection(YGuardBaseTask obfuscatorTask)Instantiates a source file section, subclasses may provide custom implementations.-
Methods inherited from class com.yworks.common.ant.Exclude
isDebugExtension, isLtable, isLttable, isRiAnn, isRiPann, isRiTypeAnn, isRvAnn, isRvPann, isRvTypeAnn, isSource, isVtable, setLinenumbertable, setLocalvariabletable, setLocalVariableTypeTable, setRuntimeInvisibleAnnotations, setRuntimeInvisibleParameterAnnotations, setRuntimeInvisibleTypeAnnotations, setRuntimeVisibleAnnotations, setRuntimeVisibleParameterAnnotations, setRuntimeVisibleTypeAnnotations, setSourceDebugExtension, setSourcefile
-
-
-
-
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.IOExceptionCreate 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
-
-