protected Constant matchedConstant(ProgramClass programClass, int argument) { return programClass.getConstant(instructionSequenceMatcher.matchedConstantIndex(argument)); }
protected Constant matchedConstant(ProgramClass programClass, int argument) { return programClass.getConstant(instructionSequenceMatcher.matchedConstantIndex(argument)); }
protected Constant matchedConstant(ProgramClass programClass, int argument) { return programClass.getConstant(instructionSequenceMatcher.matchedConstantIndex(argument)); }
public void visitConstantInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, ConstantInstruction constantInstruction) { replacementInstruction = new ConstantInstruction(constantInstruction.opcode, instructionSequenceMatcher.matchedConstantIndex(constantInstruction.constantIndex), instructionSequenceMatcher.matchedArgument(constantInstruction.constant)); }
clazz.constantPoolEntryAccept(constantClassForNameMatcher.matchedConstantIndex(X), this); clazz.constantPoolEntryAccept(classForNameCastMatcher.matchedConstantIndex(X), this); isDotClassMethodref(clazz, dotClassJavacMatcher.matchedConstantIndex(0))) clazz.constantPoolEntryAccept(dotClassJavacMatcher.matchedConstantIndex(X), this); isDotClassMethodref(clazz, dotClassJikesMatcher.matchedConstantIndex(0))) clazz.constantPoolEntryAccept(dotClassJikesMatcher.matchedConstantIndex(X), this);
clazz.constantPoolEntryAccept(classForNameCastMatcher.matchedConstantIndex(X), this); clazz.constantPoolEntryAccept(constantClassForNameMatcher.matchedConstantIndex(X), this); isDotClassMethodref(clazz, dotClassJavacMatcher.matchedConstantIndex(0))) clazz.constantPoolEntryAccept(dotClassJavacMatcher.matchedConstantIndex(X), this); isDotClassMethodref(clazz, dotClassJikesMatcher.matchedConstantIndex(0))) clazz.constantPoolEntryAccept(dotClassJikesMatcher.matchedConstantIndex(X), this);
clazz.constantPoolEntryAccept(classForNameCastMatcher.matchedConstantIndex(X), this); clazz.constantPoolEntryAccept(constantClassForNameMatcher.matchedConstantIndex(X), this); isDotClassMethodref(clazz, dotClassJavacMatcher.matchedConstantIndex(0))) clazz.constantPoolEntryAccept(dotClassJavacMatcher.matchedConstantIndex(X), this); isDotClassMethodref(clazz, dotClassJikesMatcher.matchedConstantIndex(0))) clazz.constantPoolEntryAccept(dotClassJikesMatcher.matchedConstantIndex(X), this);
clazz.constantPoolEntryAccept(classForNameCastMatcher.matchedConstantIndex(X), this); clazz.constantPoolEntryAccept(constantClassForNameMatcher.matchedConstantIndex(X), this); isDotClassMethodref(clazz, dotClassJavacMatcher.matchedConstantIndex(0))) clazz.constantPoolEntryAccept(dotClassJavacMatcher.matchedConstantIndex(X), this); isDotClassMethodref(clazz, dotClassJikesMatcher.matchedConstantIndex(0))) clazz.constantPoolEntryAccept(dotClassJikesMatcher.matchedConstantIndex(X), this);
public void visitCodeAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute) { // Is the initializer initializing the field? if (codeAttribute.u4codeLength == 10) { INITIALIZER_MATCHER.reset(); codeAttribute.instructionsAccept(clazz, method, INITIALIZER_MATCHER); if (INITIALIZER_MATCHER.isMatching()) { String initializerClassName = clazz.getName(); String fieldClassName = clazz.getClassName(INITIALIZER_MATCHER.matchedConstantIndex(InstructionSequenceMatcher.A)); if (fieldClassName.equals(initializerClassName)) { wrapCounter++; } else { wrapCounter = Integer.MIN_VALUE; } } else { wrapCounter = Integer.MIN_VALUE; } } else { wrapCounter = Integer.MIN_VALUE; } }
public void visitCodeAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute) { // Is the initializer initializing the field? if (codeAttribute.u4codeLength == 10) { INITIALIZER_MATCHER.reset(); codeAttribute.instructionsAccept(clazz, method, INITIALIZER_MATCHER); if (INITIALIZER_MATCHER.isMatching()) { String initializerClassName = clazz.getName(); String fieldClassName = clazz.getClassName(INITIALIZER_MATCHER.matchedConstantIndex(InstructionSequenceMatcher.A)); if (fieldClassName.equals(initializerClassName)) { wrapCounter++; } else { wrapCounter = Integer.MIN_VALUE; } } else { wrapCounter = Integer.MIN_VALUE; } } else { wrapCounter = Integer.MIN_VALUE; } }
public void visitCodeAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute) { // Is the initializer initializing the field? if (codeAttribute.u4codeLength == 10) { INITIALIZER_MATCHER.reset(); codeAttribute.instructionsAccept(clazz, method, INITIALIZER_MATCHER); if (INITIALIZER_MATCHER.isMatching()) { String initializerClassName = clazz.getName(); String fieldClassName = clazz.getClassName(INITIALIZER_MATCHER.matchedConstantIndex(InstructionSequenceMatcher.A)); if (fieldClassName.equals(initializerClassName)) { wrapCounter++; } else { wrapCounter = Integer.MIN_VALUE; } } else { wrapCounter = Integer.MIN_VALUE; } } else { wrapCounter = Integer.MIN_VALUE; } }
clazz.constantPoolEntryAccept(constantSequenceMatcher.matchedConstantIndex(X), this); clazz.constantPoolEntryAccept(constantSequenceMatcher.matchedConstantIndex(Y), this);
int classIndex = constantSequenceMatcher.matchedConstantIndex(CLASS_INDEX); clazz.constantPoolEntryAccept(classIndex, this); int typeClassIndex = constantSequenceMatcher.matchedConstantIndex(MEMBER_TYPE_INDEX); if (typeClassIndex > 0) int memberNameIndex = constantSequenceMatcher.matchedConstantIndex(MEMBER_NAME_INDEX); String memberName = clazz.getStringString(memberNameIndex); int memberNameIndex = variableSequenceMatcher.matchedConstantIndex(MEMBER_NAME_INDEX); String memberName = clazz.getStringString(memberNameIndex);
int classIndex = constantSequenceMatcher.matchedConstantIndex(CLASS_INDEX); clazz.constantPoolEntryAccept(classIndex, this); int typeClassIndex = constantSequenceMatcher.matchedConstantIndex(MEMBER_TYPE_INDEX); if (typeClassIndex > 0) int memberNameIndex = constantSequenceMatcher.matchedConstantIndex(MEMBER_NAME_INDEX); String memberName = clazz.getStringString(memberNameIndex); int memberNameIndex = variableSequenceMatcher.matchedConstantIndex(MEMBER_NAME_INDEX); String memberName = clazz.getStringString(memberNameIndex);
instructionSequenceMatcher.matchedConstantIndex(constantIndex);
instructionSequenceMatcher.matchedConstantIndex(constantIndex);
programClass.getStringString(instructionSequenceMatcher.matchedConstantIndex(argument));
programClass.getStringString(instructionSequenceMatcher.matchedConstantIndex(argument));
instructionSequenceMatcher.matchedConstantIndex(constantIndex);
programClass.getStringString(instructionSequenceMatcher.matchedConstantIndex(argument));