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) { // Mark the referenced field. fieldrefConstant.referencedMemberAccept(this); }
public void visitFieldrefConstant(Clazz clazz, FieldrefConstant fieldrefConstant) { // Is the constant retrieving from a wrapper class? fieldrefConstant.referencedClassAccept(this); }
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; } }
return addConstant(new FieldrefConstant(classIndex, nameAndTypeIndex, referencedClass,
public void visitFieldrefConstant(Clazz clazz, FieldrefConstant fieldrefConstant) { if (enumConstantNameFound) { if (enumTypeName.equals(fieldrefConstant.getType(clazz))) { referencedEnumField = (Field)fieldrefConstant.referencedMember; } enumConstantNameFound = false; } } }
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; } }
return addConstant(new FieldrefConstant(classIndex, nameAndTypeIndex, referencedClass,
public void visitFieldrefConstant(Clazz clazz, FieldrefConstant fieldrefConstant) { if (enumConstantNameFound) { if (enumTypeName.equals(fieldrefConstant.getType(clazz))) { referencedEnumField = (Field)fieldrefConstant.referencedMember; } enumConstantNameFound = false; } } }
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; } }
return addConstant(new FieldrefConstant(classIndex, nameAndTypeIndex, referencedClass,
public void visitFieldrefConstant(Clazz clazz, FieldrefConstant fieldrefConstant) { if (enumConstantNameFound) { if (enumTypeName.equals(fieldrefConstant.getType(clazz))) { referencedEnumField = (Field)fieldrefConstant.referencedMember; } enumConstantNameFound = false; } } }
public void visitFieldrefConstant(Clazz clazz, FieldrefConstant fieldrefConstant) { // Pass the referencing class. referencingClass = clazz; // We'll have to assume accessing an unknown field has side effects. hasSideEffects = true; // Check the referenced field, if known. fieldrefConstant.referencedMemberAccept(this); }
public void visitFieldrefConstant(Clazz clazz, FieldrefConstant fieldrefConstant) { // Is the constant retrieving from a wrapper class? fieldrefConstant.referencedClassAccept(this); }
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); }
return addConstant(new FieldrefConstant(classIndex, nameAndTypeIndex, referencedClass,
public void visitFieldrefConstant(Clazz clazz, FieldrefConstant fieldrefConstant) { String type = fieldrefConstant.getType(clazz); typeStackDelta = ClassUtil.internalTypeSize(ClassUtil.internalMethodReturnType(type)); }
public void visitFieldrefConstant(Clazz clazz, FieldrefConstant fieldrefConstant) { // Mark the referenced field. fieldrefConstant.referencedMemberAccept(this); }
public void visitFieldrefConstant(Clazz clazz, FieldrefConstant fieldrefConstant) { // Is the constant retrieving from a wrapper class? fieldrefConstant.referencedClassAccept(this); }