/** * For debugging use only. */ @Override public String toString() { return getPath() + " = " + getEditorType(); } }
/** * For debugging use only. */ @Override public String toString() { return getPath() + " = " + getEditorType(); } }
/** * @param accumulator * @param data * @throws UnableToCompleteException */ private void descendIntoSubEditor(List<EditorData> accumulator, EditorData data) throws UnableToCompleteException { EditorModel superModel = parentModel; while (superModel != null) { if (superModel.editorType.isAssignableFrom(data.getEditorType()) || data.getEditorType().isAssignableFrom(superModel.editorType)) { poison(cycleErrorMessage(data.getEditorType(), superModel.getPath(), data.getPath())); return; } superModel = superModel.parentModel; } if (data.isDelegateRequired()) { EditorModel subModel = new EditorModel(this, data.getEditorType(), data, calculateEditedType(logger, data.getEditorType())); accumulator.addAll(accumulator.indexOf(data) + 1, Arrays.asList(subModel.getEditorData())); poisoned |= subModel.poisoned; } }
/** * @param accumulator * @param data * @throws UnableToCompleteException */ private void descendIntoSubEditor(List<EditorData> accumulator, EditorData data) throws UnableToCompleteException { EditorModel superModel = parentModel; while (superModel != null) { if (superModel.editorType.isAssignableFrom(data.getEditorType()) || data.getEditorType().isAssignableFrom(superModel.editorType)) { poison(cycleErrorMessage(data.getEditorType(), superModel.getPath(), data.getPath())); return; } superModel = superModel.parentModel; } if (data.isDelegateRequired()) { EditorModel subModel = new EditorModel(this, data.getEditorType(), data, calculateEditedType(logger, data.getEditorType())); accumulator.addAll(accumulator.indexOf(data) + 1, Arrays.asList(subModel.getEditorData())); poisoned |= subModel.poisoned; } }
EditorModel subModel = new EditorModel(this, subEditor.getEditorType(), subEditor, subEditor.getEditedType()); poisoned |= subModel.poisoned;
EditorModel subModel = new EditorModel(this, subEditor.getEditorType(), subEditor, subEditor.getEditedType()); poisoned |= subModel.poisoned;
String pkg = parent.getEditorType().getPackage().getName(); escapedMaybeParameterizedBinaryName(parent.getEditorType()) + "_" + data.getDeclaredPath().replace("_", "_1").replace(".", "_") + "_Context";
String pkg = parent.getEditorType().getPackage().getName(); escapedMaybeParameterizedBinaryName(parent.getEditorType()) + "_" + data.getDeclaredPath().replace("_", "_1").replace(".", "_") + "_Context";
protected String getEditorDelegate(EditorData delegateData) { JClassType edited = delegateData.getEditedType(); JClassType editor = delegateData.getEditorType(); Map<EditorData, String> delegateFields = new IdentityHashMap<EditorData, String>(); NameFactory nameFactory = new NameFactory();
protected String getEditorDelegate(EditorData delegateData) { JClassType edited = delegateData.getEditedType(); JClassType editor = delegateData.getEditorType(); Map<EditorData, String> delegateFields = new IdentityHashMap<EditorData, String>(); NameFactory nameFactory = new NameFactory();