Class Exclude

  • Direct Known Subclasses:
    EntryPointsSection, ExposeSection

    public abstract class Exclude
    extends java.lang.Object
    Stores which byte code attributes to keep when renaming or shrinking.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean debugExtension
      Stores whether to keep the source debug extension attribute.
      protected boolean ltable
      Stores whether to keep the line number table attribute.
      protected boolean lttable
      Stores whether to keep the local variable type table attribute.
      protected boolean riAnn
      Stores whether to keep the runtime invisible annotations.
      protected boolean riPann
      Stores whether to keep the runtime invisible parameter annotations.
      protected boolean riTypeAnn
      Stores whether to keep the runtime invisible type annotations.
      protected boolean rvAnn
      Stores whether to keep the runtime visible annotations.
      protected boolean rvPann
      Stores whether to keep the runtime visible parameter annotations.
      protected boolean rvTypeAnn
      Stores whether to keep the runtime visible type annotations.
      protected boolean source
      Stores whether to keep the source file attribute.
      protected YGuardBaseTask task
      The task.
      protected boolean vtable
      Stores whether to keep the local variable table attribute.
    • Constructor Summary

      Constructors 
      Constructor Description
      Exclude​(YGuardBaseTask task)
      Initializes a new Exclude instance for the given task.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isDebugExtension()
      Determines whether to keep the source debug extension attribute.
      boolean isLtable()
      Determines whether to keep the line number table attribute.
      boolean isLttable()
      Determines whether to keep the local variable type table attribute.
      boolean isRiAnn()
      Determines whether to keep the runtime invisible annotations.
      boolean isRiPann()
      Determines whether to keep the runtime invisible parameter annotations.
      boolean isRiTypeAnn()
      Determines whether to keep the runtime invisible type annotations.
      boolean isRvAnn()
      Determines whether to keep the runtime visible annotations.
      boolean isRvPann()
      Determines whether to keep the runtime visible parameter annotations.
      boolean isRvTypeAnn()
      Determines whether to keep the runtime visible type annotations.
      boolean isSource()
      Determines whether to keep the source file attribute.
      boolean isVtable()
      Determines whether to keep the local variable table attribute.
      void setLinenumbertable​(boolean lt)
      Sets whether to keep the line number table attribute.
      void setLocalvariabletable​(boolean vt)
      Sets whether to keep the local variable table attribute.
      void setLocalVariableTypeTable​(boolean lt)
      Sets whether to keep the local variable type table attribute.
      void setRuntimeInvisibleAnnotations​(boolean v)
      Sets whether to keep the runtime invisible annotations.
      void setRuntimeInvisibleParameterAnnotations​(boolean v)
      Sets whether to keep the runtime invisible parameter annotations.
      void setRuntimeInvisibleTypeAnnotations​(boolean v)
      Sets whether to keep the runtime invisible type annotations.
      void setRuntimeVisibleAnnotations​(boolean v)
      Sets whether to keep the runtime visible annotations.
      void setRuntimeVisibleParameterAnnotations​(boolean v)
      Sets whether to keep the runtime visible parameter annotations.
      void setRuntimeVisibleTypeAnnotations​(boolean v)
      Sets whether to keep the runtime visible type annotations.
      void setSourceDebugExtension​(boolean b)
      Sets whether to keep the source debug extension attribute.
      void setSourcefile​(boolean sf)
      Sets whether to keep the source file attribute.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.
    • Constructor Detail

      • Exclude

        public Exclude​(YGuardBaseTask task)
        Initializes a new Exclude instance 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 - if true, 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 - if true, 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 - if true, 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 - if true, 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 - if true, 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 - if true, 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 - if true, 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 - if true, 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 - if true, 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 - if true, 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 - if true, 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:
        true if source files attributes have to be kept when renaming or shrinking, false otherwise.
      • isVtable

        public boolean isVtable()
        Determines whether to keep the local variable table attribute.
        Returns:
        true if local variable table attributes have to be kept when renaming or shrinking, false otherwise.
      • isLtable

        public boolean isLtable()
        Determines whether to keep the line number table attribute.
        Returns:
        true if line number table attributes have to be kept when renaming or shrinking, false otherwise.
      • isLttable

        public boolean isLttable()
        Determines whether to keep the local variable type table attribute.
        Returns:
        true if local variable type table attributes have to be kept when renaming or shrinking, false otherwise.
      • isRvAnn

        public boolean isRvAnn()
        Determines whether to keep the runtime visible annotations.
        Returns:
        true if runtime visible annotations have to be kept when renaming or shrinking, false otherwise.
      • isRiAnn

        public boolean isRiAnn()
        Determines whether to keep the runtime invisible annotations.
        Returns:
        true if runtime invisible annotations have to be kept when renaming or shrinking, false otherwise.
      • isRvPann

        public boolean isRvPann()
        Determines whether to keep the runtime visible parameter annotations.
        Returns:
        true if runtime visible parameter annotations have to be kept when renaming or shrinking, false otherwise.
      • isRiPann

        public boolean isRiPann()
        Determines whether to keep the runtime invisible parameter annotations.
        Returns:
        true if runtime invisible parameter annotations have to be kept when renaming or shrinking, false otherwise.
      • isRvTypeAnn

        public boolean isRvTypeAnn()
        Determines whether to keep the runtime visible type annotations.
        Returns:
        true if runtime visible type annotations have to be kept when renaming or shrinking, false otherwise.
      • isRiTypeAnn

        public boolean isRiTypeAnn()
        Determines whether to keep the runtime invisible type annotations.
        Returns:
        true if runtime invisible type annotations have to be kept when renaming or shrinking, false otherwise.
      • isDebugExtension

        public boolean isDebugExtension()
        Determines whether to keep the source debug extension attribute.
        Returns:
        true if source debug extension attributes have to be kept when renaming or shrinking, false otherwise.