private void visitActionFieldList(ActionInsertFact afl) { String factType = afl.factType; for ( ActionFieldValue afv : afl.fieldValues ) { InterpolationVariable var = new InterpolationVariable( afv.getValue(), afv.getType(), factType, afv.getField() ); if ( afv.nature == FieldNature.TYPE_TEMPLATE && !vars.containsKey( var ) ) { vars.put( var, vars.size() ); } } }
private void visitActionFieldList(ActionInsertFact afl) { String factType = afl.factType; for ( ActionFieldValue afv : afl.fieldValues ) { InterpolationVariable var = new InterpolationVariable( afv.getValue(), afv.getType(), factType, afv.getField() ); if ( afv.nature == FieldNature.TYPE_TEMPLATE && !vars.containsKey( var ) ) { vars.put( var, vars.size() ); } } }
private void visitActionFieldList(ActionSetField afl) { String factType = model.getLHSBindingType( afl.variable ); for ( ActionFieldValue afv : afl.fieldValues ) { InterpolationVariable var = new InterpolationVariable( afv.getValue(), afv.getType(), factType, afv.getField() ); if ( afv.nature == FieldNature.TYPE_TEMPLATE && !vars.containsKey( var ) ) { vars.put( var, vars.size() ); } } }
private void visitActionFieldList(ActionUpdateField afl) { String factType = model.getLHSBindingType( afl.variable ); for ( ActionFieldValue afv : afl.fieldValues ) { InterpolationVariable var = new InterpolationVariable( afv.getValue(), afv.getType(), factType, afv.getField() ); if ( afv.nature == FieldNature.TYPE_TEMPLATE && !vars.containsKey( var ) ) { vars.put( var, vars.size() ); } } }
private void visitActionFieldList(final ActionFieldList afl) { boolean addVariables = false; List<ValueHolder> variables = new ArrayList<ValueHolder>(); for ( ActionFieldValue afv : afl.fieldValues ) { if ( afv.nature == FieldNature.TYPE_TEMPLATE ) { if ( afv.getValue().equals( this.baseVariableName ) ) { addVariables = true; } ValueHolder vh = new ValueHolder( afv.getField(), afv.getValue(), ValueHolder.Type.TEMPLATE_KEY ); variables.add( vh ); } else { ValueHolder vh = new ValueHolder( afv.getField(), afv.getValue(), ValueHolder.Type.VALUE ); variables.add( vh ); } } if ( addVariables ) { this.peerVariables.addAll( variables ); } }
private void visitActionFieldList(ActionSetField afl) { String factType = model.getLHSBindingType( afl.variable ); for ( ActionFieldValue afv : afl.fieldValues ) { InterpolationVariable var = new InterpolationVariable( afv.getValue(), afv.getType(), factType, afv.getField() ); if ( afv.nature == FieldNature.TYPE_TEMPLATE && !vars.containsKey( var ) ) { vars.put( var, vars.size() ); } } }
private void visitActionFieldList(ActionUpdateField afl) { String factType = model.getLHSBindingType( afl.variable ); for ( ActionFieldValue afv : afl.fieldValues ) { InterpolationVariable var = new InterpolationVariable( afv.getValue(), afv.getType(), factType, afv.getField() ); if ( afv.nature == FieldNature.TYPE_TEMPLATE && !vars.containsKey( var ) ) { vars.put( var, vars.size() ); } } }
private void visitActionFieldList(final ActionFieldList afl) { boolean addVariables = false; List<ValueHolder> variables = new ArrayList<ValueHolder>(); for ( ActionFieldValue afv : afl.fieldValues ) { if ( afv.nature == FieldNature.TYPE_TEMPLATE ) { if ( afv.getValue().equals( this.baseVariableName ) ) { addVariables = true; } ValueHolder vh = new ValueHolder( afv.getField(), afv.getValue(), ValueHolder.Type.TEMPLATE_KEY ); variables.add( vh ); } else { ValueHolder vh = new ValueHolder( afv.getField(), afv.getValue(), ValueHolder.Type.VALUE ); variables.add( vh ); } } if ( addVariables ) { this.peerVariables.addAll( variables ); } }
private ActionSetField visitActionFieldList(ActionSetField afl) { ActionSetField clone = new ActionSetField(); clone.variable = afl.variable; for ( ActionFieldValue afv : afl.fieldValues ) { ActionFieldValue afvClone = new ActionFieldValue(); afvClone.setField( afv.getField() ); afvClone.setNature( afv.getNature() ); afvClone.setType( afv.getType() ); afvClone.setValue( afv.getValue() ); clone.addFieldValue( afvClone ); } return clone; }
private ActionUpdateField visitActionFieldList(ActionUpdateField afl) { ActionUpdateField clone = new ActionUpdateField(); clone.variable = afl.variable; for ( ActionFieldValue afv : afl.fieldValues ) { ActionFieldValue afvClone = new ActionFieldValue(); afvClone.setField( afv.getField() ); afvClone.setNature( afv.getNature() ); afvClone.setType( afv.getType() ); afvClone.setValue( afv.getValue() ); clone.addFieldValue( afvClone ); } return clone; }
private ActionUpdateField visitActionFieldList(ActionUpdateField afl) { ActionUpdateField clone = new ActionUpdateField(); clone.variable = afl.variable; for ( ActionFieldValue afv : afl.fieldValues ) { ActionFieldValue afvClone = new ActionFieldValue(); afvClone.setField( afv.getField() ); afvClone.setNature( afv.getNature() ); afvClone.setType( afv.getType() ); afvClone.setValue( afv.getValue() ); clone.addFieldValue( afvClone ); } return clone; }
private ActionSetField visitActionFieldList(ActionSetField afl) { ActionSetField clone = new ActionSetField(); clone.variable = afl.variable; for ( ActionFieldValue afv : afl.fieldValues ) { ActionFieldValue afvClone = new ActionFieldValue(); afvClone.setField( afv.getField() ); afvClone.setNature( afv.getNature() ); afvClone.setType( afv.getType() ); afvClone.setValue( afv.getValue() ); clone.addFieldValue( afvClone ); } return clone; }
private ActionInsertFact visitActionFieldList(ActionInsertFact afl) { ActionInsertFact clone = new ActionInsertFact(); clone.factType = afl.factType; clone.setBoundName( afl.getBoundName() ); for ( ActionFieldValue afv : afl.fieldValues ) { ActionFieldValue afvClone = new ActionFieldValue(); afvClone.setField( afv.getField() ); afvClone.setNature( afv.getNature() ); afvClone.setType( afv.getType() ); afvClone.setValue( afv.getValue() ); clone.addFieldValue( afvClone ); } return clone; }
private ActionInsertFact visitActionFieldList(ActionInsertFact afl) { ActionInsertFact clone = new ActionInsertFact(); clone.factType = afl.factType; clone.setBoundName( afl.getBoundName() ); for ( ActionFieldValue afv : afl.fieldValues ) { ActionFieldValue afvClone = new ActionFieldValue(); afvClone.setField( afv.getField() ); afvClone.setNature( afv.getNature() ); afvClone.setType( afv.getType() ); afvClone.setValue( afv.getValue() ); clone.addFieldValue( afvClone ); } return clone; }