proguard.optimize.info
Class MethodOptimizationInfo

java.lang.Object
  extended by proguard.optimize.info.MethodOptimizationInfo

public class MethodOptimizationInfo
extends java.lang.Object

This class stores some optimization information that can be attached to a method.


Constructor Summary
MethodOptimizationInfo(Clazz clazz, Method method)
          Creates a new MethodOptimizationInfo for the given method.
 
Method Summary
 boolean accessesPackageCode()
           
 boolean accessesPrivateCode()
           
 boolean accessesProtectedCode()
           
 boolean branchesBackward()
           
 boolean canBeMadePrivate()
           
 boolean catchesExceptions()
           
 void generalizeParameter(int parameterIndex, Value parameter)
           
 void generalizeReturnValue(Value returnValue)
           
 int getInvocationCount()
           
static MethodOptimizationInfo getMethodOptimizationInfo(Method method)
           
 Value getParameter(int parameterIndex)
           
 int getParameterSize()
           
 Value getReturnValue()
           
 long getUsedParameters()
           
 boolean hasNoSideEffects()
           
 boolean hasSideEffects()
           
 void incrementInvocationCount()
           
 boolean invokesSuperMethods()
           
 boolean isParameterUsed(int parameterIndex)
           
 void merge(MethodOptimizationInfo other)
           
 void setAccessesPackageCode()
           
 void setAccessesPrivateCode()
           
 void setAccessesProtectedCode()
           
 void setBranchesBackward()
           
 void setCanNotBeMadePrivate()
           
 void setCatchesExceptions()
           
 void setInvokesSuperMethods()
           
static void setMethodOptimizationInfo(Clazz clazz, Method method)
           
 void setNoSideEffects()
           
 void setParameterSize(int parameterSize)
           
 void setParameterUsed(int parameterIndex)
           
 void setSideEffects()
           
 void setUsedParameters(long usedParameters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodOptimizationInfo

public MethodOptimizationInfo(Clazz clazz,
                              Method method)
Creates a new MethodOptimizationInfo for the given method.

Method Detail

setNoSideEffects

public void setNoSideEffects()

hasNoSideEffects

public boolean hasNoSideEffects()

setSideEffects

public void setSideEffects()

hasSideEffects

public boolean hasSideEffects()

setCanNotBeMadePrivate

public void setCanNotBeMadePrivate()

canBeMadePrivate

public boolean canBeMadePrivate()

setCatchesExceptions

public void setCatchesExceptions()

catchesExceptions

public boolean catchesExceptions()

setBranchesBackward

public void setBranchesBackward()

branchesBackward

public boolean branchesBackward()

setInvokesSuperMethods

public void setInvokesSuperMethods()

invokesSuperMethods

public boolean invokesSuperMethods()

setAccessesPrivateCode

public void setAccessesPrivateCode()

accessesPrivateCode

public boolean accessesPrivateCode()

setAccessesPackageCode

public void setAccessesPackageCode()

accessesPackageCode

public boolean accessesPackageCode()

setAccessesProtectedCode

public void setAccessesProtectedCode()

accessesProtectedCode

public boolean accessesProtectedCode()

incrementInvocationCount

public void incrementInvocationCount()

getInvocationCount

public int getInvocationCount()

setParameterSize

public void setParameterSize(int parameterSize)

getParameterSize

public int getParameterSize()

setParameterUsed

public void setParameterUsed(int parameterIndex)

setUsedParameters

public void setUsedParameters(long usedParameters)

isParameterUsed

public boolean isParameterUsed(int parameterIndex)

getUsedParameters

public long getUsedParameters()

generalizeParameter

public void generalizeParameter(int parameterIndex,
                                Value parameter)

getParameter

public Value getParameter(int parameterIndex)

generalizeReturnValue

public void generalizeReturnValue(Value returnValue)

getReturnValue

public Value getReturnValue()

merge

public void merge(MethodOptimizationInfo other)

setMethodOptimizationInfo

public static void setMethodOptimizationInfo(Clazz clazz,
                                             Method method)

getMethodOptimizationInfo

public static MethodOptimizationInfo getMethodOptimizationInfo(Method method)