01: package com.yworks.yguard.obf;
02:
03: import com.yworks.yguard.obf.classfile.LineNumberTableAttrInfo;
04:
05: import java.io.PrintWriter;
06:
07: /**
08: */
09: public interface LineNumberTableMapper {
10: /**
11: * Callback method that can be used to remap a line number table.
12: * @param className the classes name that contains the method
13: * @param methodName the name of the method
14: * @param methodSignature the signature of the method
15: * @param lineNumberTable the table that may be modified by this method
16: * @return whether the line number table should be kept
17: * @see YGuardRule.TYPE_LINE_NUMBER_MAPPER
18: */
19: boolean mapLineNumberTable(String className, String methodName,
20: String methodSignature,
21: LineNumberTableAttrInfo lineNumberTable);
22:
23: /**
24: * Callback method that can be used to log custom properties to the Printwriter.
25: * @param pw the PrintWriter to print to.
26: */
27: void logProperties(PrintWriter pw);
28: }
|