public void visit(ExpressionMethod part) { ExpressionMethod method = new ExpressionMethod(part.getName(), part.getClassType(), part.getGenericType(), part.getParametricType()); copyMethodParams(part, method); add(method); moveNext(part); }
public void visit(ExpressionCollectionIndex part) { ExpressionCollectionIndex method = new ExpressionCollectionIndex(part.getName(), part.getClassType(), part.getGenericType(), part.getParametricType()); copyMethodParams(part, method); add(method); moveNext(part); }
private void fixConnectiveConstraints(SingleFieldConstraint sfc) { if ( sfc.connectives == null ) { return; } for ( ConnectiveConstraint cc : sfc.connectives ) { if ( cc.getFieldName() == null ) { cc.setFieldName( sfc.getFieldName() ); cc.setFieldType( sfc.getFieldType() ); } } }
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 void fixConstraints(FactPattern fp, SingleFieldConstraint sfc) { sfc.setFactType( fp.getFactType() ); sfc.setFieldName( fixFieldName( sfc.getFieldName() ) ); if ( sfc.connectives == null ) { return; } for ( ConnectiveConstraint cc : sfc.connectives ) { cc.setFactType( fp.getFactType() ); cc.setFieldName( fixFieldName( cc.getFieldName() ) ); } }
public void visit(ExpressionGlobalVariable part) { add(new ExpressionGlobalVariable(part.getName(), part.getClassType(), part.getGenericType(), part.getParametricType())); moveNext(part); }
public void visit(ExpressionCollection part) { add(new ExpressionCollection(part.getName(), part.getClassType(), part.getGenericType(), part.getParametricType())); moveNext(part); }
public String getText(boolean renderBindVariable) { return new ToStringVisitor().buildString( renderBindVariable ? getBinding() : null, getRootExpression() ); }
@Override public String getFieldName() { return getExpressionLeftSide().getFieldName(); }
@Override public String getFieldBinding() { return getExpressionLeftSide().getBinding(); }
@Override public void setFieldBinding(String fieldBinding) { getExpressionLeftSide().setBinding( fieldBinding ); }
public String getPreviousName() { ExpressionPart previousPart = getPreviousPart(); return previousPart == null ? null : previousPart.getName(); }
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; }
public void visit(ExpressionMethod part) { ExpressionMethod method = new ExpressionMethod(part.getName(), part.getClassType(), part.getGenericType(), part.getParametricType()); copyMethodParams(part, method); add(method); moveNext(part); }
public void visit(ExpressionCollectionIndex part) { ExpressionCollectionIndex method = new ExpressionCollectionIndex(part.getName(), part.getClassType(), part.getGenericType(), part.getParametricType()); copyMethodParams(part, method); add(method); moveNext(part); }
private void fixConnectiveConstraints(SingleFieldConstraint sfc) { if ( sfc.connectives == null ) { return; } for ( ConnectiveConstraint cc : sfc.connectives ) { if ( cc.getFieldName() == null ) { cc.setFieldName( sfc.getFieldName() ); cc.setFieldType( sfc.getFieldType() ); } } }
public void visit(ExpressionGlobalVariable part) { add(new ExpressionGlobalVariable(part.getName(), part.getClassType(), part.getGenericType(), part.getParametricType())); moveNext(part); }
public String getText(boolean renderBindVariable) { return new ToStringVisitor().buildString( renderBindVariable ? getBinding() : null, getRootExpression() ); }
public String getPreviousName() { ExpressionPart previousPart = getPreviousPart(); return previousPart == null ? null : previousPart.getName(); }