Uses of Class
org.objectweb.asm.tree.analysis.Frame
Packages that use Frame
Package
Description
Provides a framework for static code analysis based on the asm.tree package.
Provides ASM visitors that can be useful for programming and
debugging purposes.
-
Uses of Frame in org.objectweb.asm.tree.analysis
Fields in org.objectweb.asm.tree.analysis declared as FrameModifier and TypeFieldDescriptionAnalyzer.frames
The execution stack frames of the currently analyzed method (one per instruction index).Methods in org.objectweb.asm.tree.analysis that return FrameModifier and TypeMethodDescriptionAnalyzer.analyze
(String owner, MethodNode method) Analyzes the given method.Analyzer.analyzeAndComputeMaxs
(String owner, MethodNode method) Analyzes the given method and computes and sets its maximum stack size and maximum number of local variables.Analyzer.computeInitialFrame
(String owner, MethodNode method) Computes the initial execution stack frame of the given method.Analyzer.getFrames()
Returns the symbolic execution stack frame for each instruction of the last analyzed method.Copies the state of the given frame into this frame.Analyzer.newFrame
(int numLocals, int numStack) Constructs a new frame with the given size.Constructs a copy of the given frame.Methods in org.objectweb.asm.tree.analysis with parameters of type FrameModifier and TypeMethodDescriptionprivate static int
Analyzer.computeMaxStack
(Frame<?>[] frames) Computes and returns the maximum stack size of a method, given its stack map frames.Copies the state of the given frame into this frame.private void
Analyzer.merge
(int insnIndex, Frame<V> frameBeforeJsr, Frame<V> frameAfterRet, Subroutine subroutineBeforeJsr, boolean[] localsUsed) Merges the given frame and subroutine into the frame and subroutines at the given instruction index (case of a RET instruction).private void
Analyzer.merge
(int insnIndex, Frame<V> frame, Subroutine subroutine) Merges the given frame and subroutine into the frame and subroutines at the given instruction index.boolean
Merges the given frame into this frame (case of a subroutine).boolean
Frame.merge
(Frame<? extends V> frame, Interpreter<V> interpreter) Merges the given frame into this frame.Interpreter.newExceptionValue
(TryCatchBlockNode tryCatchBlockNode, Frame<V> handlerFrame, Type exceptionType) Creates a new value that represents the given exception type.Constructs a copy of the given frame.Constructors in org.objectweb.asm.tree.analysis with parameters of type Frame -
Uses of Frame in org.objectweb.asm.util
Methods in org.objectweb.asm.util that return FrameModifier and TypeMethodDescriptionCheckFrameAnalyzer.expandFrame
(String owner, Frame<V> previousFrame, FrameNode frameNode) Returns the expanded representation of the givenFrameNode
.Methods in org.objectweb.asm.util with parameters of type FrameModifier and TypeMethodDescriptionprivate void
CheckFrameAnalyzer.checkFrame
(int insnIndex, Frame<V> frame, boolean requireFrame) Checks that the given frame is compatible with the frame at the given instruction index, if any.private String
CheckFrameAnalyzer.checkMerge
(Frame<V> srcFrame, Frame<V> dstFrame) Checks that merging the two given frames would not produce any change, i.e.CheckFrameAnalyzer.expandFrame
(String owner, Frame<V> previousFrame, FrameNode frameNode) Returns the expanded representation of the givenFrameNode
.private void
CheckFrameAnalyzer.expandFrames
(String owner, MethodNode method, Frame<V> initialFrame) Expands theFrameNode
"instructions" of the given method intoFrame
objects and stores them at the corresponding indices of theAnalyzer.frames
array.