public FieldAnalyzer getField() {
		ClassInfo clazz = getClassInfo();
		if (clazz != null) {
			ClassAnalyzer ana = methodAnalyzer.getClassAnalyzer();
			while (true) {
				if (clazz == ana.getClazz()) {
					int field = ana.getFieldIndex(ref.getName(),
							Type.tType(ref.getType()));
					if (field >= 0)
						return ana.getField(field);
					return null;
				}
				if (ana.getParent() == null)
					return null;
				if (ana.getParent() instanceof MethodAnalyzer)
					ana = ((MethodAnalyzer) ana.getParent()).getClassAnalyzer();
				else if (ana.getParent() instanceof ClassAnalyzer)
					ana = (ClassAnalyzer) ana.getParent();
				else
					throw new alterrs.jode.AssertError("Unknown parent");
			}
		}
		return null;
	}