public void setStatic(final boolean flag) {
		if (this.isDeleted) {
			final String s = "Cannot change a field once it has been marked "
					+ "for deletion";
			throw new IllegalStateException(s);
		}

		int mod = methodInfo.modifiers();

		if (flag) {
			mod |= Modifiers.STATIC;
		} else {
			mod &= ~Modifiers.STATIC;
		}

		methodInfo.setModifiers(mod);
		this.setDirty(true);
	}