public final void toRawValue(JBlock block, JVar $var) { if (getOptions().target.isLaterThan(SpecVersion.V2_2)) { block.assign($var,$target.invoke(getGetterMethod())); } else { block.assign($var,$target.invoke(getGetterMethod())); } }
.namespace(e.getElementName().getNamespaceURI()) .type(e.getType().toType(outline.parent(),IMPLEMENTATION)); if(getOptions().target.isLaterThan(SpecVersion.V2_2)) refw.required(rp.isRequired()); } else .namespace(e.getElementName().getNamespaceURI()) .type(e.getType().toType(outline.parent(),IMPLEMENTATION)); if(getOptions().target.isLaterThan(SpecVersion.V2_2)) refw.required(rp.isRequired());
.namespace(e.getElementName().getNamespaceURI()) .type(e.getType().toType(outline.parent(),IMPLEMENTATION)); if(getOptions().target.isLaterThan(SpecVersion.V2_2)) refw.required(rp.isRequired()); } else .namespace(e.getElementName().getNamespaceURI()) .type(e.getType().toType(outline.parent(),IMPLEMENTATION)); if(getOptions().target.isLaterThan(SpecVersion.V2_2)) refw.required(rp.isRequired());
.namespace(e.getElementName().getNamespaceURI()) .type(e.getType().toType(outline.parent(),IMPLEMENTATION)); if(getOptions().target.isLaterThan(SpecVersion.V2_2)) refw.required(rp.isRequired()); } else .namespace(e.getElementName().getNamespaceURI()) .type(e.getType().toType(outline.parent(),IMPLEMENTATION)); if(getOptions().target.isLaterThan(SpecVersion.V2_2)) refw.required(rp.isRequired());
.namespace(e.getElementName().getNamespaceURI()) .type(e.getType().toType(outline.parent(),IMPLEMENTATION)); if(getOptions().target.isLaterThan(SpecVersion.V2_2)) refw.required(rp.isRequired()); } else .namespace(e.getElementName().getNamespaceURI()) .type(e.getType().toType(outline.parent(),IMPLEMENTATION)); if(getOptions().target.isLaterThan(SpecVersion.V2_2)) refw.required(rp.isRequired());
.namespace(e.getElementName().getNamespaceURI()) .type(e.getType().toType(outline.parent(),IMPLEMENTATION)); if(getOptions().target.isLaterThan(SpecVersion.V2_2)) refw.required(rp.isRequired()); } else .namespace(e.getElementName().getNamespaceURI()) .type(e.getType().toType(outline.parent(),IMPLEMENTATION)); if(getOptions().target.isLaterThan(SpecVersion.V2_2)) refw.required(rp.isRequired());
/** * Gets the name of the getter method. * * <p> * This encapsulation is necessary because sometimes we use * {@code isXXXX} as the method name. */ protected String getGetterMethod() { if (getOptions().target.isLaterThan(SpecVersion.V2_2)) { return ((getFieldType().isPrimitive() && getFieldType().boxify().getPrimitiveType()==codeModel.BOOLEAN) ? "is":"get") + prop.getName(true); } else { return (getFieldType().boxify().getPrimitiveType()==codeModel.BOOLEAN?"is":"get")+prop.getName(true); } }
writeTypeName(cc.target.getTypeName(), xtw, mostUsedNamespaceURI); if (model.options.target.isLaterThan(SpecVersion.V2_1)) {
writeTypeName(cc.target.getTypeName(), xtw, mostUsedNamespaceURI); if (model.options.target.isLaterThan(SpecVersion.V2_1)) {
writeTypeName(cc.target.getTypeName(), xtw, mostUsedNamespaceURI); if (model.options.target.isLaterThan(SpecVersion.V2_1)) {
writeTypeName(cc.target.getTypeName(), xtw, mostUsedNamespaceURI); if(model.options.target.isLaterThan(SpecVersion.V2_1)) {
writeTypeName(cc.target.getTypeName(), xtw, mostUsedNamespaceURI); if(model.options.target.isLaterThan(SpecVersion.V2_1)) {