Class ClassItemInfo

    • Field Detail

      • u2attributesCount

        protected int u2attributesCount
        The U 2 attributes count.
      • attributes

        protected AttrInfo[] attributes
        The Attributes.
    • Constructor Detail

      • ClassItemInfo

        protected ClassItemInfo​(ClassFile cf)
        Instantiates a new Class item info.
        Parameters:
        cf - the cf
    • Method Detail

      • getObfuscationConfig

        public static ObfuscationConfig getObfuscationConfig​(java.lang.String name,
                                                             AttrInfo[] attributes)
        Gets obfuscation config.
        Parameters:
        name - the name
        attributes - the attributes
        Returns:
        the obfuscation config
      • isSynthetic

        public boolean isSynthetic()
        Is the field or method 'Synthetic'?
        Returns:
        the boolean
      • getNameIndex

        protected int getNameIndex()
        Return method/field name index into Constant Pool.
        Returns:
        the name index
      • setNameIndex

        protected void setNameIndex​(int index)
        Set the method/field name index.
        Parameters:
        index - the index
      • getDescriptorIndex

        protected int getDescriptorIndex()
        Return method/field descriptor index into Constant Pool.
        Returns:
        the descriptor index
      • setDescriptorIndex

        protected void setDescriptorIndex​(int index)
        Set the method/field descriptor index.
        Parameters:
        index - the index
      • getName

        public java.lang.String getName()
        Return method/field string name.
        Returns:
        the name
      • getDescriptor

        public java.lang.String getDescriptor()
        Return descriptor string.
        Returns:
        the descriptor
      • getAccessFlags

        public int getAccessFlags()
        Return access flags.
        Returns:
        the access flags
      • trimAttrsExcept

        protected void trimAttrsExcept​(java.lang.String[] keepAttrs)
        Trim attributes from the classfile ('Code', 'Exceptions', 'ConstantValue' are preserved, all others except the list in the String[] are killed).
        Parameters:
        keepAttrs - the keep attrs
      • markUtf8Refs

        protected void markUtf8Refs​(ConstantPool pool)
        Check for Utf8 references to constant pool and mark them.
        Parameters:
        pool - the pool
      • read

        protected void read​(java.io.DataInput din)
                     throws java.io.IOException
        Import the field or method data to internal representation.
        Parameters:
        din - the din
        Throws:
        java.io.IOException - the io exception
      • write

        public void write​(java.io.DataOutput dout)
                   throws java.io.IOException
        Export the representation to a DataOutput stream.
        Parameters:
        dout - the dout
        Throws:
        java.io.IOException - the io exception
      • getObfuscationConfig

        public ObfuscationConfig getObfuscationConfig()
        Gets obfuscation config.
        Returns:
        the obfuscation config