private EditorAccess(String path, JClassType type, String expression) { this.expression = expression; this.path = path; this.type = type; isEditor = isEditor(type); }
/** * For debugging use only. */ @Override public String toString() { return getPath() + " = " + getEditorType(); } }
/** * Constructs an EditorAccess for an IsEditor type. */ public static EditorAccess via(EditorAccess access, JClassType type) { return new EditorAccess(access.getPath(), type, access.getExpresson() + ".asEditor()"); }
public EditorData getRootData() throws UnableToCompleteException { TreeLogger rootLogger = logger.branch(TreeLogger.DEBUG, "Calculating root data for " + getEditorType().getParameterizedQualifiedSourceName()); return new EditorData.Builder(rootLogger).access( EditorAccess.root(getEditorType())).build(); }
private EditorModel(EditorModel parent, JClassType editorType, EditorData subEditor, JClassType proxyType) throws UnableToCompleteException { logger = parent.logger.branch(TreeLogger.DEBUG, "Descending into " + subEditor.getPath()); this.compositeEditorIntf = parent.compositeEditorIntf; this.editorIntf = parent.editorIntf; this.editorType = editorType; this.editorSoFar = subEditor; this.isEditorIntf = parent.isEditorIntf; this.leafValueEditorIntf = parent.leafValueEditorIntf; this.oracle = parent.oracle; this.parentModel = parent; this.proxyType = proxyType; this.typeData = parent.typeData; editorData = calculateEditorData(); }
/** * Given a JType, return the binary name of the class that is most proximately * assignable to the type. This method will resolve type parameters as well as * wildcard types. */ public static String getQualifiedBaseBinaryName(JType type) { return ensureBaseType(type).getErasedType().getQualifiedBinaryName(); }
private String getPath() { if (editorSoFar != null) { return editorSoFar.getPath(); } else { return "<Root Object>"; } }
public static EditorAccess root(JClassType rootType) { return new EditorAccess("", rootType, ""); }
private void accumulateEditorData(List<EditorData> data, List<EditorData> flatData, List<EditorData> allData) throws UnableToCompleteException { flatData.addAll(data); allData.addAll(data); for (EditorData d : data) { descendIntoSubEditor(allData, d); } }
public EditorData getRootData() throws UnableToCompleteException { TreeLogger rootLogger = logger.branch(TreeLogger.DEBUG, "Calculating root data for " + getEditorType().getParameterizedQualifiedSourceName()); return new EditorData.Builder(rootLogger).access( EditorAccess.root(getEditorType())).build(); }
/** * Constructs an EditorAccess for an IsEditor type. */ public static EditorAccess via(EditorAccess access, JClassType type) { return new EditorAccess(access.getPath(), type, access.getExpresson() + ".asEditor()"); }
/** * For debugging use only. */ @Override public String toString() { return getPath() + " = " + getEditorType(); } }
private EditorModel(EditorModel parent, JClassType editorType, EditorData subEditor, JClassType proxyType) throws UnableToCompleteException { logger = parent.logger.branch(TreeLogger.DEBUG, "Descending into " + subEditor.getPath()); this.compositeEditorIntf = parent.compositeEditorIntf; this.editorIntf = parent.editorIntf; this.editorType = editorType; this.editorSoFar = subEditor; this.isEditorIntf = parent.isEditorIntf; this.leafValueEditorIntf = parent.leafValueEditorIntf; this.oracle = parent.oracle; this.parentModel = parent; this.proxyType = proxyType; this.typeData = parent.typeData; editorData = calculateEditorData(); }
/** * Given a JType, return the source name of the class that is most proximately * assignable to the type. This method will resolve type parameters as well as * wildcard types. */ public static String getQualifiedBaseSourceName(JType type) { return ensureBaseType(type).getErasedType().getQualifiedSourceName(); }
private String getPath() { if (editorSoFar != null) { return editorSoFar.getPath(); } else { return "<Root Object>"; } }
private EditorAccess(String path, JClassType type, String expression) { this.expression = expression; this.path = path; this.type = type; isEditor = isEditor(type); }
public static EditorAccess root(JClassType rootType) { return new EditorAccess("", rootType, ""); }
private void accumulateEditorData(List<EditorData> data, List<EditorData> flatData, List<EditorData> allData) throws UnableToCompleteException { flatData.addAll(data); allData.addAll(data); for (EditorData d : data) { descendIntoSubEditor(allData, d); } }
/** * Given a JType, return the source name of the class that is most proximately * assignable to the type. This method will resolve type parameters as well as * wildcard types. */ public static String getQualifiedBaseSourceName(JType type) { return ensureBaseType(type).getErasedType().getQualifiedSourceName(); }
/** * Given a JType, return the binary name of the class that is most proximately * assignable to the type. This method will resolve type parameters as well as * wildcard types. */ public static String getQualifiedBaseBinaryName(JType type) { return ensureBaseType(type).getErasedType().getQualifiedBinaryName(); }