@Override public <T> boolean visit(EditorContext<T> ctx) { String path = ctx.getAbsolutePath(); if (path.length() > 0) { if (ValueCodex.canDecode(ctx.getEditedType())) { /* * If there's an @Path("foo.bar.valueField") annotation, we want to * collect the containing "foo.bar" path. */ int dotPosition = path.lastIndexOf('.'); if (dotPosition > 0) { String parentPath = path.substring(0, dotPosition); paths.add(parentPath); } } else { // Always collect @Path("foo.bar.baz") field, when baz isn't a value paths.add(path); } } if (ctx.asCompositeEditor() != null) { ctx.traverseSyntheticCompositeEditor(this); } return true; } }
@Override public <T> boolean visit(EditorContext<T> ctx) { println(ctx.getAbsolutePath()); data(ctx.getEditedType().getName()); data(ctx.getEditor().getClass().getName()); data("Implements: " // + ctx.asCompositeEditor() == null ? "" : "CompositeEditor " // + ctx.asHasEditorDelegate() == null ? "" : "HasEditorDelegate " // + ctx.asHasEditorErrors() == null ? "" : "HasEditorErrors " // + ctx.asLeafValueEditor() == null ? "" : "LeafValueEditor " // + ctx.asValueAwareEditor() == null ? "" : "ValueAwareEditor "); level++; return true; }
@Override public <T> boolean visit(EditorContext<T> ctx) { String path = ctx.getAbsolutePath(); if (path.length() > 0) { if (ValueCodex.canDecode(ctx.getEditedType())) { /* * If there's an @Path("foo.bar.valueField") annotation, we want to * collect the containing "foo.bar" path. */ int dotPosition = path.lastIndexOf('.'); if (dotPosition > 0) { String parentPath = path.substring(0, dotPosition); paths.add(parentPath); } } else { // Always collect @Path("foo.bar.baz") field, when baz isn't a value paths.add(path); } } if (ctx.asCompositeEditor() != null) { ctx.traverseSyntheticCompositeEditor(this); } return true; } }
@Override public <T> boolean visit(EditorContext<T> ctx) { String path = ctx.getAbsolutePath(); if (path.length() > 0) { if (ValueCodex.canDecode(ctx.getEditedType())) { /* * If there's an @Path("foo.bar.valueField") annotation, we want to * collect the containing "foo.bar" path. */ int dotPosition = path.lastIndexOf('.'); if (dotPosition > 0) { String parentPath = path.substring(0, dotPosition); paths.add(parentPath); } } else { // Always collect @Path("foo.bar.baz") field, when baz isn't a value paths.add(path); } } if (ctx.asCompositeEditor() != null) { ctx.traverseSyntheticCompositeEditor(this); } return true; } }
@Override public <T> boolean visit(EditorContext<T> ctx) { println(ctx.getAbsolutePath()); data(ctx.getEditedType().getName()); data(ctx.getEditor().getClass().getName()); data("Implements: " // + ctx.asCompositeEditor() == null ? "" : "CompositeEditor " // + ctx.asHasEditorDelegate() == null ? "" : "HasEditorDelegate " // + ctx.asHasEditorErrors() == null ? "" : "HasEditorErrors " // + ctx.asLeafValueEditor() == null ? "" : "LeafValueEditor " // + ctx.asValueAwareEditor() == null ? "" : "ValueAwareEditor "); level++; return true; }
@Override public <T> boolean visit(EditorContext<T> ctx) { println(ctx.getAbsolutePath()); data(ctx.getEditedType().getName()); data(ctx.getEditor().getClass().getName()); data("Implements: " // + ctx.asCompositeEditor() == null ? "" : "CompositeEditor " // + ctx.asHasEditorDelegate() == null ? "" : "HasEditorDelegate " // + ctx.asHasEditorErrors() == null ? "" : "HasEditorErrors " // + ctx.asLeafValueEditor() == null ? "" : "LeafValueEditor " // + ctx.asValueAwareEditor() == null ? "" : "ValueAwareEditor "); level++; return true; }