类 InstructionSequenceMatcher

java.lang.Object
proguard.classfile.util.InstructionSequenceMatcher
所有已实现的接口:
ConstantVisitor, InstructionVisitor

public class InstructionSequenceMatcher extends Object implements InstructionVisitor, ConstantVisitor
This InstructionVisitor checks whether a given pattern instruction sequence occurs in the instructions that are visited. The arguments of the instruction sequence can be wildcards that are matched.
  • 字段详细资料

  • 构造器详细资料

    • InstructionSequenceMatcher

      public InstructionSequenceMatcher(Constant[] patternConstants, Instruction[] patternInstructions)
      Creates a new InstructionSequenceMatcher.
      参数:
      patternConstants - any constants referenced by the pattern instruction.
      patternInstructions - the pattern instruction sequence.
    • InstructionSequenceMatcher

      public InstructionSequenceMatcher(Constant[] patternConstants, Instruction[] patternInstructions, boolean matchSubclasses)
      Creates a new InstructionSequenceMatcher.
      参数:
      patternConstants - any constants referenced by the pattern instruction.
      patternInstructions - the pattern instruction sequence.
      matchSubclasses - whether constant references on subclasses are matching when the pattern contains a constant of a superclass. (default: false)
  • 方法详细资料