Skip navigation links
net.md_5.specialsource

Class AccessMap

    • Constructor Detail

      • AccessMap

        public AccessMap()
    • Method Detail

      • loadAccessTransformer

        public void loadAccessTransformer(String filename)
                                   throws IOException
        Load an access transformer into this AccessMap.
        Parameters:
        filename - Location of AT data, one of: - local filename - remote HTTP URL - "pattern:" followed by one transformer line
        Throws:
        IOException
      • convertSymbolPattern

        public static String convertSymbolPattern(String s)
        Convert a symbol name pattern from AT config to internal format
      • addAccessChange

        public void addAccessChange(String line)
      • addAccessChange

        public void addAccessChange(String symbolString,
                                    String accessString)
      • applyClassAccess

        public int applyClassAccess(String className,
                                    int access)
      • applyFieldAccess

        public int applyFieldAccess(String className,
                                    String fieldName,
                                    int access)
      • applyMethodAccess

        public int applyMethodAccess(String className,
                                     String methodName,
                                     String methodDesc,
                                     int access)
      • accessApplied

        protected void accessApplied(String key,
                                     int oldAccess,
                                     int newAccess)
        Called when an access mapping is applied.
        Parameters:
        key - the key which caused the mapping to be matched & applied
        oldAccess - the access which was replaced
        newAccess - the new access which was applied by the mapping

Copyright © 2012-2015. All Rights Reserved.