@Override public String getFieldName() { return getExpressionLeftSide().getFieldName(); }
@Override public String getFieldName() { return getExpressionLeftSide().getFieldName(); }
/** * This adds a new connective. */ @Override public void addNewConnective() { String factType = getExpressionLeftSide().getPreviousGenericType(); if ( factType == null ) { factType = getExpressionLeftSide().getGenericType(); } String fieldName = getExpressionLeftSide().getFieldName(); String fieldType = getExpressionLeftSide().getGenericType(); if ( this.connectives == null ) { this.connectives = new ConnectiveConstraint[]{new ConnectiveConstraint( factType, fieldName, fieldType )}; } else { final ConnectiveConstraint[] newList = new ConnectiveConstraint[this.connectives.length + 1]; for ( int i = 0; i < this.connectives.length; i++ ) { newList[i] = this.connectives[i]; } newList[this.connectives.length] = new ConnectiveConstraint( factType, fieldName, fieldType ); this.connectives = newList; } }
/** * This adds a new connective. */ @Override public void addNewConnective() { String factType = getExpressionLeftSide().getPreviousGenericType(); if ( factType == null ) { factType = getExpressionLeftSide().getGenericType(); } String fieldName = getExpressionLeftSide().getFieldName(); String fieldType = getExpressionLeftSide().getGenericType(); if ( this.connectives == null ) { this.connectives = new ConnectiveConstraint[]{new ConnectiveConstraint( factType, fieldName, fieldType )}; } else { final ConnectiveConstraint[] newList = new ConnectiveConstraint[this.connectives.length + 1]; for ( int i = 0; i < this.connectives.length; i++ ) { newList[i] = this.connectives[i]; } newList[this.connectives.length] = new ConnectiveConstraint( factType, fieldName, fieldType ); this.connectives = newList; } }
assertEquals( efl0.getClassType(), efl0Clone.getClassType() ); assertEquals( efl0.getFieldName(), efl0Clone.getFieldName() ); assertEquals( efl0.getGenericType(), efl0Clone.getGenericType() );
assertEquals( eflhs0.getClassType(), eflhs0Clone.getClassType() ); assertEquals( eflhs0.getFieldName(), eflhs0Clone.getFieldName() ); assertEquals( eflhs0.getGenericType(), eflhs0Clone.getGenericType() ); assertEquals( efl0.getClassType(), efl0Clone.getClassType() ); assertEquals( efl0.getFieldName(), efl0Clone.getFieldName() ); assertEquals( efl0.getGenericType(), efl0Clone.getGenericType() );
assertEquals( efl0.getClassType(), efl0Clone.getClassType() ); assertEquals( efl0.getFieldName(), efl0Clone.getFieldName() ); assertEquals( efl0.getGenericType(), efl0Clone.getGenericType() );
assertEquals( efl0.getClassType(), efl0Clone.getClassType() ); assertEquals( efl0.getFieldName(), efl0Clone.getFieldName() ); assertEquals( efl0.getGenericType(), efl0Clone.getGenericType() );
assertEquals( efl0.getClassType(), efl0Clone.getClassType() ); assertEquals( efl0.getFieldName(), efl0Clone.getFieldName() ); assertEquals( efl0.getGenericType(), efl0Clone.getGenericType() );