Package proguard.evaluation
Class PartialEvaluator.Builder
java.lang.Object
proguard.evaluation.PartialEvaluator.Builder
- Enclosing class:
- PartialEvaluator
-
Method Summary
Modifier and TypeMethodDescriptionbuild()static PartialEvaluator.Buildercreate()Disable pretty printing of errors.setBranchTargetFinder(BranchTargetFinder branchTargetFinder) The utility class that will find all branches.setBranchUnit(BasicBranchUnit branchUnit) The branch unit that will handle all branches.setCallingInstructionBlockStack(Stack<PartialEvaluator.InstructionBlock> callingInstructionBlockStack) the stack of instruction blocks to be evaluated.setEvaluateAllCode(boolean evaluateAllCode) Specifies whether all casts, branch targets, and exceptionhandlers should be evaluated, even if they are unnecessary or unreachable.setExtraInstructionVisitor(InstructionVisitor extraInstructionVisitor) an optional extra visitor for all instructions right before they are executed.setInvocationUnit(InvocationUnit invocationUnit) The invocation unit that will handle all communication with other fields and methods.setPrettyPrinting(int prettyInstructionBuffered) Specifies how many instructions should be considered in the context of a pretty message.setStateTracker(PartialEvaluatorStateTracker stateTracker) setValueFactory(ValueFactory valueFactory) the value factory that will create all values during evaluation.stopAnalysisAfterNEvaluations(int stopAnalysisAfterNEvaluations) The analysis of one method will forcibly stop (throwing a ExcessiveComplexityException) after this many evaluations of a single instruction.
-
Method Details
-
create
-
build
-
setStateTracker
-
setValueFactory
the value factory that will create all values during evaluation. -
setInvocationUnit
The invocation unit that will handle all communication with other fields and methods. -
setEvaluateAllCode
Specifies whether all casts, branch targets, and exceptionhandlers should be evaluated, even if they are unnecessary or unreachable. -
setPrettyPrinting
Specifies how many instructions should be considered in the context of a pretty message. When<= 0, no pretty printing is applied. -
disablePrettyPrinting
Disable pretty printing of errors. -
setExtraInstructionVisitor
public PartialEvaluator.Builder setExtraInstructionVisitor(InstructionVisitor extraInstructionVisitor) an optional extra visitor for all instructions right before they are executed. -
setBranchUnit
The branch unit that will handle all branches. -
setBranchTargetFinder
The utility class that will find all branches. -
setCallingInstructionBlockStack
public PartialEvaluator.Builder setCallingInstructionBlockStack(Stack<PartialEvaluator.InstructionBlock> callingInstructionBlockStack) the stack of instruction blocks to be evaluated. -
stopAnalysisAfterNEvaluations
The analysis of one method will forcibly stop (throwing a ExcessiveComplexityException) after this many evaluations of a single instruction.
-