Class YGuardRule


  • public class YGuardRule
    extends java.lang.Object
    Representation of RGS script files entry.
    • Field Detail

      • LEVEL_NONE

        public static final int LEVEL_NONE
        The constant LEVEL_NONE.
        See Also:
        Constant Field Values
      • LEVEL_PUBLIC

        public static final int LEVEL_PUBLIC
        The constant LEVEL_PUBLIC.
        See Also:
        Constant Field Values
      • LEVEL_PROTECTED

        public static final int LEVEL_PROTECTED
        The constant LEVEL_PROTECTED.
        See Also:
        Constant Field Values
      • LEVEL_FRIENDLY

        public static final int LEVEL_FRIENDLY
        The constant LEVEL_FRIENDLY.
        See Also:
        Constant Field Values
      • LEVEL_PRIVATE

        public static final int LEVEL_PRIVATE
        The constant LEVEL_PRIVATE.
        See Also:
        Constant Field Values
      • TYPE_CLASS

        public static final int TYPE_CLASS
        The constant TYPE_CLASS.
        See Also:
        Constant Field Values
      • TYPE_FIELD

        public static final int TYPE_FIELD
        The constant TYPE_FIELD.
        See Also:
        Constant Field Values
      • TYPE_METHOD

        public static final int TYPE_METHOD
        The constant TYPE_METHOD.
        See Also:
        Constant Field Values
      • TYPE_PACKAGE_MAP

        public static final int TYPE_PACKAGE_MAP
        The constant TYPE_PACKAGE_MAP.
        See Also:
        Constant Field Values
      • TYPE_CLASS_MAP

        public static final int TYPE_CLASS_MAP
        The constant TYPE_CLASS_MAP.
        See Also:
        Constant Field Values
      • TYPE_FIELD_MAP

        public static final int TYPE_FIELD_MAP
        The constant TYPE_FIELD_MAP.
        See Also:
        Constant Field Values
      • TYPE_METHOD_MAP

        public static final int TYPE_METHOD_MAP
        The constant TYPE_METHOD_MAP.
        See Also:
        Constant Field Values
      • TYPE_SOURCE_ATTRIBUTE_MAP

        public static final int TYPE_SOURCE_ATTRIBUTE_MAP
        The constant TYPE_SOURCE_ATTRIBUTE_MAP.
        See Also:
        Constant Field Values
      • TYPE_LINE_NUMBER_MAPPER

        public static final int TYPE_LINE_NUMBER_MAPPER
        The constant TYPE_LINE_NUMBER_MAPPER.
        See Also:
        Constant Field Values
      • TYPE_ATTR2

        public static final int TYPE_ATTR2
        The constant TYPE_ATTR2.
        See Also:
        Constant Field Values
      • TYPE_PACKAGE

        public static final int TYPE_PACKAGE
        The constant TYPE_PACKAGE.
        See Also:
        Constant Field Values
      • type

        public int type
        The Type.
      • name

        public java.lang.String name
        The Name.
      • descriptor

        public java.lang.String descriptor
        The Descriptor.
      • obfName

        public java.lang.String obfName
        The Obf name.
      • lineNumberTableMapper

        public LineNumberTableMapper lineNumberTableMapper
        The Line number table mapper.
      • retainFields

        public int retainFields
        The Retain fields.
      • retainMethods

        public int retainMethods
        The Retain methods.
      • retainClasses

        public int retainClasses
        The Retain classes.
    • Constructor Detail

      • YGuardRule

        public YGuardRule​(int type,
                          java.lang.String name)
        Instantiates a new Y guard rule.
        Parameters:
        type - the type
        name - the name
      • YGuardRule

        public YGuardRule​(int type,
                          java.lang.String name,
                          java.lang.String descriptor)
        Instantiates a new Y guard rule.
        Parameters:
        type - the type
        name - the name
        descriptor - the descriptor
      • YGuardRule

        public YGuardRule​(java.lang.String className,
                          LineNumberTableMapper lineNumberTableMapper)
        Instantiates a new Y guard rule.
        Parameters:
        className - the class name
        lineNumberTableMapper - the line number table mapper
    • Method Detail

      • logProperties

        public void logProperties​(java.io.PrintWriter pw)
        Log properties.
        Parameters:
        pw - the pw
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • typeToString

        public static java.lang.String typeToString​(int type)
        Type to string string.
        Parameters:
        type - the type
        Returns:
        the string
      • methodToString

        public static java.lang.String methodToString​(int modifier)
        Method to string string.
        Parameters:
        modifier - the modifier
        Returns:
        the string