public static EditorAccess root(JClassType rootType) { return new EditorAccess("", rootType, ""); }
public static EditorAccess root(JClassType rootType) { return new EditorAccess("", rootType, ""); }
/** * Constructs an EditorAccess for an IsEditor type. */ public static EditorAccess via(EditorAccess access, JClassType type) { return new EditorAccess(access.getPath(), type, access.getExpresson() + ".asEditor()"); }
/** * 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 static EditorAccess via(JMethod method) { String path = method.getName(); Path pathAnnotation = method.getAnnotation(Editor.Path.class); if (pathAnnotation != null) { path = pathAnnotation.value(); } else if (path.endsWith(EDITOR_SUFFIX)) { path = path.substring(0, path.length() - EDITOR_SUFFIX.length()); } return new EditorAccess(path, method.getReturnType().isClassOrInterface(), method.getName() + "()"); }
public static EditorAccess via(JField field) { String path = field.getName(); Path pathAnnotation = field.getAnnotation(Editor.Path.class); if (pathAnnotation != null) { path = pathAnnotation.value(); } else if (path.endsWith(EDITOR_SUFFIX)) { path = path.substring(0, path.length() - EDITOR_SUFFIX.length()); } return new EditorAccess(path, field.getType().isClassOrInterface(), field.getName()); }
public static EditorAccess via(JMethod method) { String path = method.getName(); Path pathAnnotation = method.getAnnotation(Editor.Path.class); if (pathAnnotation != null) { path = pathAnnotation.value(); } else if (path.endsWith(EDITOR_SUFFIX)) { path = path.substring(0, path.length() - EDITOR_SUFFIX.length()); } return new EditorAccess(path, method.getReturnType().isClassOrInterface(), method.getName() + "()"); }
public static EditorAccess via(JField field) { String path = field.getName(); Path pathAnnotation = field.getAnnotation(Editor.Path.class); if (pathAnnotation != null) { path = pathAnnotation.value(); } else if (path.endsWith(EDITOR_SUFFIX)) { path = path.substring(0, path.length() - EDITOR_SUFFIX.length()); } return new EditorAccess(path, field.getType().isClassOrInterface(), field.getName()); }