public void parse(final XMLElement elem, String fieldName, JClassType type, UiBinderWriter writer) throws UnableToCompleteException { this.fieldName = fieldName; this.writer = writer; OwnerFieldClass ownerFieldClass = OwnerFieldClass.getFieldClass(type, writer.getLogger(), uiBinderCtx); uiChildMethods = ownerFieldClass.getUiChildMethods(); // Parse children. elem.consumeChildElements(new Interpreter<Boolean>() { public Boolean interpretElement(XMLElement child) throws UnableToCompleteException { if (isValidChildElement(elem, child)) { handleChild(child); return true; } return false; } }); }
final Map<String, JType> unfilledRequiredParams = new HashMap<String, JType>(); final OwnerFieldClass ownerFieldClass = OwnerFieldClass.getFieldClass(type, writer.getLogger(), context);
public void parse(final XMLElement elem, String fieldName, JClassType type, UiBinderWriter writer) throws UnableToCompleteException { this.fieldName = fieldName; this.writer = writer; OwnerFieldClass ownerFieldClass = OwnerFieldClass.getFieldClass(type, writer.getLogger(), uiBinderCtx); uiChildMethods = ownerFieldClass.getUiChildMethods(); // Parse children. elem.consumeChildElements(new Interpreter<Boolean>() { public Boolean interpretElement(XMLElement child) throws UnableToCompleteException { if (isValidChildElement(elem, child)) { handleChild(child); return true; } return false; } }); }
public void parse(final XMLElement elem, String fieldName, JClassType type, UiBinderWriter writer) throws UnableToCompleteException { this.fieldName = fieldName; this.writer = writer; OwnerFieldClass ownerFieldClass = OwnerFieldClass.getFieldClass(type, writer.getLogger(), uiBinderCtx); uiChildMethods = ownerFieldClass.getUiChildMethods(); // Parse children. elem.consumeChildElements(new Interpreter<Boolean>() { public Boolean interpretElement(XMLElement child) throws UnableToCompleteException { if (isValidChildElement(elem, child)) { handleChild(child); return true; } return false; } }); }
final Map<String, JType> unfilledRequiredParams = new HashMap<String, JType>(); final OwnerFieldClass ownerFieldClass = OwnerFieldClass.getFieldClass(type, writer.getLogger(), context);
final Map<String, JType> unfilledRequiredParams = new HashMap<String, JType>(); final OwnerFieldClass ownerFieldClass = OwnerFieldClass.getFieldClass(type, writer.getLogger(), context);
/** * Constructor. * * @param field the field of the owner class * @param logger * @param context */ public OwnerField(JField field, MortalLogger logger, UiBinderContext context) throws UnableToCompleteException { this.name = field.getName(); // Get the field type and ensure it's a class or interface JClassType fieldClassType = field.getType().isClassOrInterface(); if (fieldClassType == null) { logger.die("Type for field " + name + " is not a class: " + field.getType().getSimpleSourceName()); } this.fieldType = OwnerFieldClass.getFieldClass(fieldClassType, logger, context); // Get the UiField annotation and process it UiField annotation = field.getAnnotation(UiField.class); if (annotation == null) { logger.die("Field " + name + " is not annotated with @UiField"); } isProvided = annotation.provided(); }
/** * Constructor. * * @param field the field of the owner class * @param logger * @param context */ public OwnerField(JField field, MortalLogger logger, UiBinderContext context) throws UnableToCompleteException { this.name = field.getName(); // Get the field type and ensure it's a class or interface JClassType fieldClassType = field.getType().isClassOrInterface(); if (fieldClassType == null) { logger.die("Type for field " + name + " is not a class: " + field.getType().getSimpleSourceName()); } this.fieldType = OwnerFieldClass.getFieldClass(fieldClassType, logger, context); // Get the UiField annotation and process it UiField annotation = field.getAnnotation(UiField.class); if (annotation == null) { logger.die("Field " + name + " is not annotated with @UiField"); } isProvided = annotation.provided(); }