public void removeField(CtField f) throws NotFoundException { checkModify(); FieldInfo fi = f.getFieldInfo2(); ClassFile cf = getClassFile2(); if (cf.getFields().remove(fi)) { getMembers().remove(f); gcConstPool = true; } else throw new NotFoundException(f.toString()); }
@Override public void removeField(CtField f) throws NotFoundException { checkModify(); FieldInfo fi = f.getFieldInfo2(); ClassFile cf = getClassFile2(); if (cf.getFields().remove(fi)) { getMembers().remove(f); gcConstPool = true; } else throw new NotFoundException(f.toString()); }
public JavassistEnumConstantDeclaration(CtField ctField, TypeSolver typeSolver) { if (ctField == null) { throw new IllegalArgumentException(); } if ((ctField.getFieldInfo2().getAccessFlags() & AccessFlag.ENUM) != 0) { throw new IllegalArgumentException("Trying to instantiate a JavassistEnumConstantDeclaration with something which is not an enum field: " + ctField.toString()); } this.ctField = ctField; this.typeSolver = typeSolver; }
public JavassistEnumConstantDeclaration(CtField ctField, TypeSolver typeSolver) { if (ctField == null) { throw new IllegalArgumentException(); } if ((ctField.getFieldInfo2().getAccessFlags() & AccessFlag.ENUM) != 0) { throw new IllegalArgumentException("Trying to instantiate a JavassistEnumConstantDeclaration with something which is not an enum field: " + ctField.toString()); } this.ctField = ctField; this.typeSolver = typeSolver; }
public JavassistEnumConstantDeclaration(CtField ctField, TypeSolver typeSolver) { if (ctField == null) { throw new IllegalArgumentException(); } if ((ctField.getFieldInfo2().getAccessFlags() & AccessFlag.ENUM) == 0) { throw new IllegalArgumentException( "Trying to instantiate a JavassistEnumConstantDeclaration with something which is not an enum field: " + ctField.toString()); } this.ctField = ctField; this.typeSolver = typeSolver; }
public void removeField(CtField f) throws NotFoundException { checkModify(); FieldInfo fi = f.getFieldInfo2(); ClassFile cf = getClassFile2(); if (cf.getFields().remove(fi)) { getMembers().remove(f); gcConstPool = true; } else throw new NotFoundException(f.toString()); }
public void removeField(CtField f) throws NotFoundException { checkModify(); FieldInfo fi = f.getFieldInfo2(); ClassFile cf = getClassFile2(); if (cf.getFields().remove(fi)) { getMembers().remove(f); gcConstPool = true; } else throw new NotFoundException(f.toString()); }
public void removeField(CtField f) throws NotFoundException { checkModify(); FieldInfo fi = f.getFieldInfo2(); ClassFile cf = getClassFile2(); if (cf.getFields().remove(fi)) { getMembers().remove(f); memberRemoved = true; } else throw new NotFoundException(f.toString()); }
public void removeField(CtField f) throws NotFoundException { checkModify(); FieldInfo fi = f.getFieldInfo2(); ClassFile cf = getClassFile2(); if (cf.getFields().remove(fi)) { getMembers().remove(f); gcConstPool = true; } else throw new NotFoundException(f.toString()); }
public void removeField(CtField f) throws NotFoundException { checkModify(); FieldInfo fi = f.getFieldInfo2(); ClassFile cf = getClassFile2(); if (cf.getFields().remove(fi)) { getMembers().remove(f); gcConstPool = true; } else throw new NotFoundException(f.toString()); }