|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectproguard.classfile.util.SimplifiedVisitor
proguard.optimize.info.ParameterUsageMarker
public class ParameterUsageMarker
This MemberVisitor counts the parameters and marks the used parameters of the methods that it visits. It also marks the 'this' parameters of methods that have hierarchies.
| Constructor Summary | |
|---|---|
ParameterUsageMarker()
|
|
| Method Summary | |
|---|---|
static int |
getParameterSize(Method method)
Returns the total size of the parameters. |
static long |
getUsedParameters(Method method)
Returns which parameters are being used. |
static boolean |
isParameterUsed(Method method,
int variableIndex)
Returns whether the given parameter is being used. |
static void |
markParameterUsed(Method method,
int variableIndex)
Marks the given parameter as being used. |
static void |
markUsedParameters(Method method,
long usedParameters)
Marks the given parameters as being used. |
void |
visitLibraryMethod(LibraryClass libraryClass,
LibraryMethod libraryMethod)
|
void |
visitProgramMethod(ProgramClass programClass,
ProgramMethod programMethod)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface proguard.classfile.visitor.MemberVisitor |
|---|
visitLibraryField, visitProgramField |
| Constructor Detail |
|---|
public ParameterUsageMarker()
| Method Detail |
|---|
public void visitProgramMethod(ProgramClass programClass,
ProgramMethod programMethod)
visitProgramMethod in interface MemberVisitorvisitProgramMethod in class SimplifiedVisitor
public void visitLibraryMethod(LibraryClass libraryClass,
LibraryMethod libraryMethod)
visitLibraryMethod in interface MemberVisitorvisitLibraryMethod in class SimplifiedVisitorpublic static int getParameterSize(Method method)
public static void markParameterUsed(Method method,
int variableIndex)
public static void markUsedParameters(Method method,
long usedParameters)
public static boolean isParameterUsed(Method method,
int variableIndex)
public static long getUsedParameters(Method method)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||