Package com.yworks.common.ant
Class Exclude
- java.lang.Object
-
- com.yworks.common.ant.Exclude
-
- Direct Known Subclasses:
EntryPointsSection,ExposeSection
public abstract class Exclude extends java.lang.ObjectStores which byte code attributes to keep when renaming or shrinking.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleandebugExtensionStores whether to keep the source debug extension attribute.protected booleanltableStores whether to keep the line number table attribute.protected booleanlttableStores whether to keep the local variable type table attribute.protected booleanriAnnStores whether to keep the runtime invisible annotations.protected booleanriPannStores whether to keep the runtime invisible parameter annotations.protected booleanriTypeAnnStores whether to keep the runtime invisible type annotations.protected booleanrvAnnStores whether to keep the runtime visible annotations.protected booleanrvPannStores whether to keep the runtime visible parameter annotations.protected booleanrvTypeAnnStores whether to keep the runtime visible type annotations.protected booleansourceStores whether to keep the source file attribute.protected YGuardBaseTasktaskThe task.protected booleanvtableStores whether to keep the local variable table attribute.
-
Constructor Summary
Constructors Constructor Description Exclude(YGuardBaseTask task)Initializes a newExcludeinstance for the given task.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisDebugExtension()Determines whether to keep the source debug extension attribute.booleanisLtable()Determines whether to keep the line number table attribute.booleanisLttable()Determines whether to keep the local variable type table attribute.booleanisRiAnn()Determines whether to keep the runtime invisible annotations.booleanisRiPann()Determines whether to keep the runtime invisible parameter annotations.booleanisRiTypeAnn()Determines whether to keep the runtime invisible type annotations.booleanisRvAnn()Determines whether to keep the runtime visible annotations.booleanisRvPann()Determines whether to keep the runtime visible parameter annotations.booleanisRvTypeAnn()Determines whether to keep the runtime visible type annotations.booleanisSource()Determines whether to keep the source file attribute.booleanisVtable()Determines whether to keep the local variable table attribute.voidsetLinenumbertable(boolean lt)Sets whether to keep the line number table attribute.voidsetLocalvariabletable(boolean vt)Sets whether to keep the local variable table attribute.voidsetLocalVariableTypeTable(boolean lt)Sets whether to keep the local variable type table attribute.voidsetRuntimeInvisibleAnnotations(boolean v)Sets whether to keep the runtime invisible annotations.voidsetRuntimeInvisibleParameterAnnotations(boolean v)Sets whether to keep the runtime invisible parameter annotations.voidsetRuntimeInvisibleTypeAnnotations(boolean v)Sets whether to keep the runtime invisible type annotations.voidsetRuntimeVisibleAnnotations(boolean v)Sets whether to keep the runtime visible annotations.voidsetRuntimeVisibleParameterAnnotations(boolean v)Sets whether to keep the runtime visible parameter annotations.voidsetRuntimeVisibleTypeAnnotations(boolean v)Sets whether to keep the runtime visible type annotations.voidsetSourceDebugExtension(boolean b)Sets whether to keep the source debug extension attribute.voidsetSourcefile(boolean sf)Sets whether to keep the source file attribute.
-
-
-
Field Detail
-
source
protected boolean source
Stores whether to keep the source file attribute.
-
vtable
protected boolean vtable
Stores whether to keep the local variable table attribute.
-
ltable
protected boolean ltable
Stores whether to keep the line number table attribute.
-
lttable
protected boolean lttable
Stores whether to keep the local variable type table attribute.
-
rvAnn
protected boolean rvAnn
Stores whether to keep the runtime visible annotations.
-
rvTypeAnn
protected boolean rvTypeAnn
Stores whether to keep the runtime visible type annotations.
-
riAnn
protected boolean riAnn
Stores whether to keep the runtime invisible annotations.
-
riTypeAnn
protected boolean riTypeAnn
Stores whether to keep the runtime invisible type annotations.
-
rvPann
protected boolean rvPann
Stores whether to keep the runtime visible parameter annotations.
-
riPann
protected boolean riPann
Stores whether to keep the runtime invisible parameter annotations.
-
debugExtension
protected boolean debugExtension
Stores whether to keep the source debug extension attribute.
-
task
protected YGuardBaseTask task
The task.
-
-
Constructor Detail
-
Exclude
public Exclude(YGuardBaseTask task)
Initializes a newExcludeinstance for the given task.- Parameters:
task- the task
-
-
Method Detail
-
setSourcefile
public void setSourcefile(boolean sf)
Sets whether to keep the source file attribute.- Parameters:
sf- iftrue, source file attributes are kept when renaming or shrinking, otherwise they are removed.
-
setLocalvariabletable
public void setLocalvariabletable(boolean vt)
Sets whether to keep the local variable table attribute.- Parameters:
vt- iftrue, local variable table attributes are kept when renaming or shrinking, otherwise they are removed.
-
setLinenumbertable
public void setLinenumbertable(boolean lt)
Sets whether to keep the line number table attribute.- Parameters:
lt- iftrue, line number table attributes are kept when renaming or shrinking, otherwise they are removed.
-
setRuntimeVisibleAnnotations
public void setRuntimeVisibleAnnotations(boolean v)
Sets whether to keep the runtime visible annotations.- Parameters:
v- iftrue, runtime visible annotations are kept when renaming or shrinking, otherwise they are removed.
-
setRuntimeVisibleTypeAnnotations
public void setRuntimeVisibleTypeAnnotations(boolean v)
Sets whether to keep the runtime visible type annotations.- Parameters:
v- iftrue, runtime visible type annotations are kept when renaming or shrinking, otherwise they are removed.
-
setRuntimeInvisibleAnnotations
public void setRuntimeInvisibleAnnotations(boolean v)
Sets whether to keep the runtime invisible annotations.- Parameters:
v- iftrue, runtime invisible annotations are kept when renaming or shrinking, otherwise they are removed.
-
setRuntimeInvisibleTypeAnnotations
public void setRuntimeInvisibleTypeAnnotations(boolean v)
Sets whether to keep the runtime invisible type annotations.- Parameters:
v- iftrue, runtime invisible type annotations are kept when renaming or shrinking, otherwise they are removed.
-
setRuntimeVisibleParameterAnnotations
public void setRuntimeVisibleParameterAnnotations(boolean v)
Sets whether to keep the runtime visible parameter annotations.- Parameters:
v- iftrue, runtime visible parameter annotations are kept when renaming or shrinking, otherwise they are removed.
-
setRuntimeInvisibleParameterAnnotations
public void setRuntimeInvisibleParameterAnnotations(boolean v)
Sets whether to keep the runtime invisible parameter annotations.- Parameters:
v- iftrue, runtime invisible parameter annotations are kept when renaming or shrinking, otherwise they are removed.
-
setLocalVariableTypeTable
public void setLocalVariableTypeTable(boolean lt)
Sets whether to keep the local variable type table attribute.- Parameters:
lt- iftrue, local variable type table attributes are kept when renaming or shrinking, otherwise they are removed.
-
setSourceDebugExtension
public void setSourceDebugExtension(boolean b)
Sets whether to keep the source debug extension attribute.- Parameters:
b- iftrue, source debug extension attributes are kept when renaming or shrinking, otherwise they are removed.
-
isSource
public boolean isSource()
Determines whether to keep the source file attribute.- Returns:
trueif source files attributes have to be kept when renaming or shrinking,falseotherwise.
-
isVtable
public boolean isVtable()
Determines whether to keep the local variable table attribute.- Returns:
trueif local variable table attributes have to be kept when renaming or shrinking,falseotherwise.
-
isLtable
public boolean isLtable()
Determines whether to keep the line number table attribute.- Returns:
trueif line number table attributes have to be kept when renaming or shrinking,falseotherwise.
-
isLttable
public boolean isLttable()
Determines whether to keep the local variable type table attribute.- Returns:
trueif local variable type table attributes have to be kept when renaming or shrinking,falseotherwise.
-
isRvAnn
public boolean isRvAnn()
Determines whether to keep the runtime visible annotations.- Returns:
trueif runtime visible annotations have to be kept when renaming or shrinking,falseotherwise.
-
isRiAnn
public boolean isRiAnn()
Determines whether to keep the runtime invisible annotations.- Returns:
trueif runtime invisible annotations have to be kept when renaming or shrinking,falseotherwise.
-
isRvPann
public boolean isRvPann()
Determines whether to keep the runtime visible parameter annotations.- Returns:
trueif runtime visible parameter annotations have to be kept when renaming or shrinking,falseotherwise.
-
isRiPann
public boolean isRiPann()
Determines whether to keep the runtime invisible parameter annotations.- Returns:
trueif runtime invisible parameter annotations have to be kept when renaming or shrinking,falseotherwise.
-
isRvTypeAnn
public boolean isRvTypeAnn()
Determines whether to keep the runtime visible type annotations.- Returns:
trueif runtime visible type annotations have to be kept when renaming or shrinking,falseotherwise.
-
isRiTypeAnn
public boolean isRiTypeAnn()
Determines whether to keep the runtime invisible type annotations.- Returns:
trueif runtime invisible type annotations have to be kept when renaming or shrinking,falseotherwise.
-
isDebugExtension
public boolean isDebugExtension()
Determines whether to keep the source debug extension attribute.- Returns:
trueif source debug extension attributes have to be kept when renaming or shrinking,falseotherwise.
-
-