public static XField createXField(PreorderVisitor visitor) { JavaClass javaClass = visitor.getThisClass(); Field field = visitor.getField(); XField f =  createXField(javaClass, field); ((AbstractField) f).markAsResolved();
public static XField createXField(String className, String fieldName, String fieldSignature, boolean isStatic) { XFactory xFactory =AnalysisContext.currentXFactory(); XField f;  if (isStatic) { int accessFlags = 0; if (fieldName.toUpperCase().equals(fieldName)) accessFlags = Constants.ACC_FINAL; f = new StaticField(className, fieldName, fieldSignature, accessFlags); } else { int accessFlags = 0; if (fieldName.startsWith("this$")) accessFlags = Constants.ACC_FINAL; f = new InstanceField(className, fieldName, fieldSignature, accessFlags); } f = xFactory.intern(f); f = xFactory.resolve(f);
	public static XField createXField(PreorderVisitor visitor) {		JavaClass javaClass = visitor.getThisClass();		Field field = visitor.getField();		XField f =  createXField(javaClass, field);		((AbstractField) f).markAsResolved();		return f;	}