de.fub.bytecode.generic
Interface CodeConstraint
- public interface CodeConstraint
Code patterns found with the FindPattern class may receive an additional
CodeConstraint argument that checks the found piece of code for user-defined
constraints. I.e. FindPattern.search() returns the matching code if and
only if CodeConstraint.checkCode() returns true.
- Version:
- $Id: CodeConstraint.java,v 1.2 2001/05/09 09:26:57 dahm Exp $
- Author:
- M. Dahm
- See Also:
FindPattern
checkCode
public boolean checkCode(InstructionHandle[] match)
- Parameters:
match
- array of instructions matching the requested pattern