/** * Get "invalid annotation" error message prefix that describes the annotation on the specified method. * * @param method the method to check * @return error message prefix */ protected String getErrorPrefix(Method method) { return "invalid " + this.getAnnotationDescription() + " annotation on method " + method + " for type `" + this.jclass.getName() + "': "; } }
@ProvidesProperty(TypeContainer.NAME_PROPERTY) public String propertyName() { return this.jclass != null ? this.jclass.getName() : this.type.getSimpleName(); }
private String getTypeExpression(ParseSession session, boolean defaultJObject) { return this.jclass != null ? this.jclass.getName() : this.type != null ? session.relativizeClassName(this.type) + ".class" : defaultJObject ? session.relativizeClassName(Object.class) + ".class" : ""; }
super(ui, (jobj != null ? "Edit " : "New ") + jclass.getName()); this.setWidth(600, Sizeable.Unit.PIXELS); this.setHeight(450, Sizeable.Unit.PIXELS);