public JExpression isSet() { return field.ne(JExpr._null()); }
private void writeGetWsdlLocation(JType retType, JDefinedClass cls, JFieldVar urlField, JFieldVar exField) { JMethod m = cls.method(JMod.PRIVATE|JMod.STATIC , retType, "__getWsdlLocation"); JConditional ifBlock = m.body()._if(exField.ne(JExpr._null())); ifBlock._then()._throw(exField); m.body()._return(urlField); }
private void writeGetWsdlLocation(JType retType, JDefinedClass cls, JFieldVar urlField, JFieldVar exField) { JMethod m = cls.method(JMod.PRIVATE|JMod.STATIC , retType, "__getWsdlLocation"); JConditional ifBlock = m.body()._if(exField.ne(JExpr._null())); ifBlock._then()._throw(exField); m.body()._return(urlField); }
private void writeGetWsdlLocation(JType retType, JDefinedClass cls, JFieldVar urlField, JFieldVar exField) { JMethod m = cls.method(JMod.PRIVATE|JMod.STATIC , retType, "__getWsdlLocation"); JConditional ifBlock = m.body()._if(exField.ne(JExpr._null())); ifBlock._then()._throw(exField); m.body()._return(urlField); }
private void writeGetWsdlLocation(JType retType, JDefinedClass cls, JFieldVar urlField, JFieldVar exField) { JMethod m = cls.method(JMod.PRIVATE|JMod.STATIC , retType, "__getWsdlLocation"); JConditional ifBlock = m.body()._if(exField.ne(JExpr._null())); ifBlock._then()._throw(exField); m.body()._return(urlField); }
JConditional ifBlock = jBlock._if(validationSession.ne(JExpr._null())); ifBlock._then().block().invoke(validationSession, "invokeListeners") .arg(JExpr._this()) ifBlock = jBlock._if(validationSession.ne(JExpr._null())); ifBlock._then().block().invoke(validationSession, "set") .arg(JExpr._this()) log.debug("Method name: {} pos {}",jMethod.name(),jBlock.pos()); jBlock.pos(0); JConditional ifBlock = jBlock._if(validationSession.ne(JExpr._null())); ifBlock._then().block().invoke(validationSession, "clean").arg(JExpr._this()); String methodTypeName = jMethod.type().name();