public void visitFieldrefConstant(Clazz clazz, FieldrefConstant fieldrefConstant) { // First add the referenced class constant, with its own referenced class. clazz.constantPoolEntryAccept(fieldrefConstant.u2classIndex, this); // Then add the actual field reference constant, with its referenced // class and class member. constantIndex = constantPoolEditor.addFieldrefConstant(constantIndex, fieldrefConstant.getName(clazz), fieldrefConstant.getType(clazz), fieldrefConstant.referencedClass, fieldrefConstant.referencedMember); }
public void visitFieldrefConstant(Clazz clazz, FieldrefConstant fieldrefConstant) { // First add the referenced class constant, with its own referenced class. clazz.constantPoolEntryAccept(fieldrefConstant.u2classIndex, this); // Then add the actual field reference constant, with its referenced // class and class member. constantIndex = constantPoolEditor.addFieldrefConstant(constantIndex, fieldrefConstant.getName(clazz), fieldrefConstant.getType(clazz), fieldrefConstant.referencedClass, fieldrefConstant.referencedMember); }
public void visitFieldrefConstant(Clazz clazz, FieldrefConstant fieldrefConstant) { // First add the referenced class constant, with its own referenced class. clazz.constantPoolEntryAccept(fieldrefConstant.u2classIndex, this); // Then add the actual field reference constant, with its referenced // class and class member. constantIndex = constantPoolEditor.addFieldrefConstant(constantIndex, fieldrefConstant.getName(clazz), fieldrefConstant.getType(clazz), fieldrefConstant.referencedClass, fieldrefConstant.referencedMember); }
public void visitFieldrefConstant(Clazz clazz, FieldrefConstant fieldrefConstant) { // First add the referenced class constant, with its own referenced class. clazz.constantPoolEntryAccept(fieldrefConstant.u2classIndex, this); // Then add the actual field reference constant, with its referenced // class and class member. constantIndex = constantPoolEditor.addFieldrefConstant(constantIndex, fieldrefConstant.getName(clazz), fieldrefConstant.getType(clazz), fieldrefConstant.referencedClass, fieldrefConstant.referencedMember); }
public void visitFieldrefConstant(Clazz clazz, FieldrefConstant fieldrefConstant) { // Argument of getstatic instruction. switch (label) { case LABEL_LOAD_PARAMETER_TYPE: String className = fieldrefConstant.getClassName(clazz); String fieldName = fieldrefConstant.getName(clazz); String fieldType = fieldrefConstant.getType(clazz); if (className.startsWith(ClassConstants.PACKAGE_JAVA_LANG) && fieldName.equals(ClassConstants.FIELD_NAME_TYPE) && fieldType.equals(ClassConstants.FIELD_TYPE_TYPE)) { char parameterType = ClassUtil.internalPrimitiveTypeFromNumericClassName(className); parameterTypes.append(parameterType); label = LABEL_STORE_PARAMETER; } else { reset(); } break; default: reset(); break; } }
public void visitFieldrefConstant(Clazz clazz, FieldrefConstant fieldrefConstant) { // Argument of getstatic instruction. switch (label) { case LABEL_LOAD_PARAMETER_TYPE: String className = fieldrefConstant.getClassName(clazz); String fieldName = fieldrefConstant.getName(clazz); String fieldType = fieldrefConstant.getType(clazz); if (className.startsWith(ClassConstants.PACKAGE_JAVA_LANG) && fieldName.equals(ClassConstants.FIELD_NAME_TYPE) && fieldType.equals(ClassConstants.FIELD_TYPE_TYPE)) { char parameterType = ClassUtil.internalPrimitiveTypeFromNumericClassName(className); parameterTypes.append(parameterType); label = LABEL_STORE_PARAMETER; } else { reset(); } break; default: reset(); break; } }
public void visitFieldrefConstant(Clazz clazz, FieldrefConstant fieldrefConstant) { // Argument of getstatic instruction. switch (label) { case LABEL_LOAD_PARAMETER_TYPE: String className = fieldrefConstant.getClassName(clazz); String fieldName = fieldrefConstant.getName(clazz); String fieldType = fieldrefConstant.getType(clazz); if (className.startsWith(ClassConstants.PACKAGE_JAVA_LANG) && fieldName.equals(ClassConstants.FIELD_NAME_TYPE) && fieldType.equals(ClassConstants.FIELD_TYPE_TYPE)) { char parameterType = ClassUtil.internalPrimitiveTypeFromNumericClassName(className); parameterTypes.append(parameterType); label = LABEL_STORE_PARAMETER; } else { reset(); } break; default: reset(); break; } }
public void visitFieldrefConstant(Clazz clazz, FieldrefConstant fieldrefConstant) { // Do we know the referenced field? Member referencedMember = fieldrefConstant.referencedMember; if (referencedMember != null) { Clazz referencedClass = fieldrefConstant.referencedClass; // Does it have a new name or type? String newName = referencedMember.getName(referencedClass); String newType = referencedMember.getDescriptor(referencedClass); if (!fieldrefConstant.getName(clazz).equals(newName) || !fieldrefConstant.getType(clazz).equals(newType)) { if (DEBUG) { debug(clazz, fieldrefConstant, referencedClass, referencedMember); } // Update the name and type index. fieldrefConstant.u2nameAndTypeIndex = new ConstantPoolEditor((ProgramClass)clazz).addNameAndTypeConstant(newName, newType); } } }
public void visitFieldrefConstant(Clazz clazz, FieldrefConstant fieldrefConstant) { // Do we know the referenced field? Member referencedMember = fieldrefConstant.referencedMember; if (referencedMember != null) { Clazz referencedClass = fieldrefConstant.referencedClass; // Does it have a new name or type? String newName = referencedMember.getName(referencedClass); String newType = referencedMember.getDescriptor(referencedClass); if (!fieldrefConstant.getName(clazz).equals(newName) || !fieldrefConstant.getType(clazz).equals(newType)) { if (DEBUG) { debug(clazz, fieldrefConstant, referencedClass, referencedMember); } // Update the name and type index. fieldrefConstant.u2nameAndTypeIndex = new ConstantPoolEditor((ProgramClass)clazz).addNameAndTypeConstant(newName, newType); } } }
public void visitFieldrefConstant(Clazz clazz, FieldrefConstant fieldrefConstant) { // Do we know the referenced field? Member referencedMember = fieldrefConstant.referencedMember; if (referencedMember != null) { Clazz referencedClass = fieldrefConstant.referencedClass; // Does it have a new name or type? String newName = referencedMember.getName(referencedClass); String newType = referencedMember.getDescriptor(referencedClass); if (!fieldrefConstant.getName(clazz).equals(newName) || !fieldrefConstant.getType(clazz).equals(newType)) { if (DEBUG) { debug(clazz, fieldrefConstant, referencedClass, referencedMember); } // Update the name and type index. fieldrefConstant.u2nameAndTypeIndex = new ConstantPoolEditor((ProgramClass)clazz).addNameAndTypeConstant(newName, newType); } } }
public void visitFieldrefConstant(Clazz clazz, FieldrefConstant fieldrefConstant) { // Do we know the referenced field? Member referencedMember = fieldrefConstant.referencedMember; if (referencedMember != null) { Clazz referencedClass = fieldrefConstant.referencedClass; // Does it have a new name or type? String newName = referencedMember.getName(referencedClass); String newType = referencedMember.getDescriptor(referencedClass); if (!fieldrefConstant.getName(clazz).equals(newName) || !fieldrefConstant.getType(clazz).equals(newType)) { if (DEBUG) { debug(clazz, fieldrefConstant, referencedClass, referencedMember); } // Update the name and type index. fieldrefConstant.u2nameAndTypeIndex = new ConstantPoolEditor((ProgramClass)clazz).addNameAndTypeConstant(newName, newType); } } }