|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectproguard.classfile.util.SimplifiedVisitor
proguard.optimize.evaluation.LivenessAnalyzer
public class LivenessAnalyzer
This AttributeVisitor analyzes the liveness of the variables in the code attributes that it visits, based on partial evaluation.
| Constructor Summary | |
|---|---|
LivenessAnalyzer()
Creates a new LivenessAnalyzer. |
|
LivenessAnalyzer(PartialEvaluator partialEvaluator)
Creates a new LivenessAnalyzer that will use the given partial evaluator. |
|
| Method Summary | |
|---|---|
boolean |
isAliveAfter(int instructionOffset,
int variableIndex)
Returns whether the specified variable is alive after the instruction at the given offset. |
boolean |
isAliveBefore(int instructionOffset,
int variableIndex)
Returns whether the specified variable is alive before the instruction at the given offset. |
boolean |
isCategory2(int instructionOffset,
int variableIndex)
Returns whether the specified variable takes up two entries after the instruction at the given offset. |
void |
setAliveAfter(int instructionOffset,
int variableIndex,
boolean alive)
Sets whether the specified variable is alive after the instruction at the given offset. |
void |
setAliveBefore(int instructionOffset,
int variableIndex,
boolean alive)
Sets whether the specified variable is alive before the instruction at the given offset. |
void |
setCategory2(int instructionOffset,
int variableIndex,
boolean category2)
Sets whether the specified variable takes up two entries after the instruction at the given offset. |
void |
visitAnyAttribute(Clazz clazz,
Attribute attribute)
Visit any type of attribute. |
void |
visitAnyInstruction(Clazz clazz,
Method method,
CodeAttribute codeAttribute,
int offset,
Instruction instruction)
Visits any type of Instruction. |
void |
visitCodeAttribute(Clazz clazz,
Method method,
CodeAttribute codeAttribute)
|
void |
visitConstantInstruction(Clazz clazz,
Method method,
CodeAttribute codeAttribute,
int offset,
ConstantInstruction constantInstruction)
|
void |
visitExceptionInfo(Clazz clazz,
Method method,
CodeAttribute codeAttribute,
ExceptionInfo exceptionInfo)
|
void |
visitVariableInstruction(Clazz clazz,
Method method,
CodeAttribute codeAttribute,
int offset,
VariableInstruction variableInstruction)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface proguard.classfile.instruction.visitor.InstructionVisitor |
|---|
visitBranchInstruction, visitLookUpSwitchInstruction, visitSimpleInstruction, visitTableSwitchInstruction |
| Constructor Detail |
|---|
public LivenessAnalyzer()
public LivenessAnalyzer(PartialEvaluator partialEvaluator)
| Method Detail |
|---|
public boolean isAliveBefore(int instructionOffset,
int variableIndex)
public void setAliveBefore(int instructionOffset,
int variableIndex,
boolean alive)
public boolean isAliveAfter(int instructionOffset,
int variableIndex)
public void setAliveAfter(int instructionOffset,
int variableIndex,
boolean alive)
public boolean isCategory2(int instructionOffset,
int variableIndex)
public void setCategory2(int instructionOffset,
int variableIndex,
boolean category2)
public void visitAnyAttribute(Clazz clazz,
Attribute attribute)
SimplifiedVisitor
visitAnyAttribute in class SimplifiedVisitor
public void visitCodeAttribute(Clazz clazz,
Method method,
CodeAttribute codeAttribute)
visitCodeAttribute in interface AttributeVisitorvisitCodeAttribute in class SimplifiedVisitor
public void visitAnyInstruction(Clazz clazz,
Method method,
CodeAttribute codeAttribute,
int offset,
Instruction instruction)
SimplifiedVisitor
visitAnyInstruction in class SimplifiedVisitor
public void visitVariableInstruction(Clazz clazz,
Method method,
CodeAttribute codeAttribute,
int offset,
VariableInstruction variableInstruction)
visitVariableInstruction in interface InstructionVisitorvisitVariableInstruction in class SimplifiedVisitor
public void visitConstantInstruction(Clazz clazz,
Method method,
CodeAttribute codeAttribute,
int offset,
ConstantInstruction constantInstruction)
visitConstantInstruction in interface InstructionVisitorvisitConstantInstruction in class SimplifiedVisitor
public void visitExceptionInfo(Clazz clazz,
Method method,
CodeAttribute codeAttribute,
ExceptionInfo exceptionInfo)
visitExceptionInfo in interface ExceptionInfoVisitor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||