ProGuard

proguard.obfuscate
Class MultiMappingProcessor

java.lang.Object
  extended byproguard.obfuscate.MultiMappingProcessor
All Implemented Interfaces:
MappingProcessor

public class MultiMappingProcessor
extends Object
implements MappingProcessor

This MappingKeeper delegates all method calls to each MappingProcessor in a given list.


Constructor Summary
MultiMappingProcessor(MappingProcessor[] mappingProcessors)
          Creates a new MultiMappingProcessor.
 
Method Summary
 boolean processClassFileMapping(String className, String newClassName)
          Processes the given class name mapping.
 void processFieldMapping(String className, String fieldType, String fieldName, String newFieldName)
          Processes the given field name mapping.
 void processMethodMapping(String className, int firstLineNumber, int lastLineNumber, String methodReturnType, String methodNameAndArguments, String newMethodName)
          Processes the given method name mapping.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiMappingProcessor

public MultiMappingProcessor(MappingProcessor[] mappingProcessors)
Creates a new MultiMappingProcessor.

Parameters:
mappingProcessors - the mapping processors to which method calls will be delegated.
Method Detail

processClassFileMapping

public boolean processClassFileMapping(String className,
                                       String newClassName)
Description copied from interface: MappingProcessor
Processes the given class name mapping.

Specified by:
processClassFileMapping in interface MappingProcessor
Parameters:
className - the original class name.
newClassName - the new class name.
Returns:
whether the processor is interested in receiving mappings of the class members of this class.

processFieldMapping

public void processFieldMapping(String className,
                                String fieldType,
                                String fieldName,
                                String newFieldName)
Description copied from interface: MappingProcessor
Processes the given field name mapping.

Specified by:
processFieldMapping in interface MappingProcessor
Parameters:
className - the original class name.
fieldType - the original external field type.
fieldName - the original field name.
newFieldName - the new field name.

processMethodMapping

public void processMethodMapping(String className,
                                 int firstLineNumber,
                                 int lastLineNumber,
                                 String methodReturnType,
                                 String methodNameAndArguments,
                                 String newMethodName)
Description copied from interface: MappingProcessor
Processes the given method name mapping.

Specified by:
processMethodMapping in interface MappingProcessor
Parameters:
className - the original class name.
firstLineNumber - the first line number of the method, or 0 if it is not known.
lastLineNumber - the last line number of the method, or 0 if it is not known.
methodReturnType - the original external method return type.
methodNameAndArguments - the original external method name and arguments.
newMethodName - the new method name.

ProGuard