final public AssignmentExpression assignmentExpression() throws ParseException { ExpressionItem item = null; ExpressionItem item2 = null; item = expression_leaf(); jj_consume_token(SYM_ASSIGNMENT); item2 = expression_leaf(); {if (true) return new AssignmentExpression((Variable) item, item2);} throw new Error("Missing return statement in function"); }
public AssignmentExpression toAssignmentExpression() throws IllegalStateException { if (archetypeElementRuleLineElement.getValue() == null) { throw new IllegalStateException("No variable set"); } Variable var = new Variable( archetypeElementRuleLineElement.getValue().getValue(), null, null, OpenEHRConst.NULL_FLAVOR_ATTRIBUTE); DvCodedText nullValue = nullValueRuleLineElement.getValue(); if (nullValue == null) { throw new IllegalStateException("No null value set"); } String dataValueStr = nullValue.toString(); LoggerFactory.getLogger(SetElementAttributeActionRuleLine.class).debug("dataValueStr: " + dataValueStr); return new AssignmentExpression( var, new ConstantExpression(dataValueStr)); } }
public AssignmentExpression toAssignmentExpression() throws IllegalStateException { if (archetypeElementAttributeRuleLineElement.getValue() == null || archetypeElementAttributeRuleLineElement.getValue().getValue() == null) { throw new IllegalStateException("No variable set"); } Variable var = new Variable( archetypeElementAttributeRuleLineElement.getValue().getValue().getValue(), null, null, archetypeElementAttributeRuleLineElement.getAttribute()); return new AssignmentExpression( var, expressionRuleLineElement.getValue()); }
public AssignmentExpression toAssignmentExpression() throws IllegalStateException { ArchetypeElementVO archetypeElementVO = getArchetypeElementRuleLineElement().getArchetypeElementVO(); if (archetypeElementVO == null) { log.debug("No variable set on assignment expression"); return null; } String name = getArchetypeManager().getArchetypeElements().getText(archetypeElementVO, getLanguage()); Variable var = new Variable( archetypeElementRuleLineElement.getValue().getValue(), null, name); DataValue dataValue = archetypeDataValueRuleLineElement.getValue(); ConstantExpression constantExpression; if (dataValue != null) { constantExpression = DVUtil.convertToExpression(dataValue); } else { log.debug("No data value set"); return null; } return new AssignmentExpression( var, constantExpression); } }
public AssignmentExpression toAssignmentExpression() throws IllegalStateException { ArchetypeElementVO archetypeElementVO = getArchetypeElementRuleLineElement().getArchetypeElementVO(); if (archetypeElementVO == null) { throw new IllegalStateException("No variable set"); } String name = getArchetypeManager().getArchetypeElements().getText(archetypeElementVO, getLanguage()); Variable var = new Variable( archetypeElementRuleLineElement.getValue().getValue(), null, name); ArchetypeElementVO archetypeElementVO2 = getSecondArchetypeElementRuleLineElement().getArchetypeElementVO(); if (archetypeElementVO2 == null) { throw new IllegalStateException("No variable to assign set"); } Variable varAux = new Variable( archetypeElementRuleLineElement2.getValue().getValue(), null, name); return new AssignmentExpression(var, varAux);//TODO }
op = OperatorKind.ASSIGNMENT; item2 = expression_leaf(); {if (true) return new AssignmentExpression((Variable) item, item2);} } else { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {