@Override public void setAttributePath(String urn, String parentAttributeName) { this.filterExpression.setAttributePath(urn, parentAttributeName); }
@Override public void setAttributePath(String urn, String parentAttributeName) { this.left.setAttributePath(urn, parentAttributeName); this.right.setAttributePath(urn, parentAttributeName); }
@Override public void exitFilterValuePathExpression(FilterValuePathExpressionContext ctx) { String attributePath = ctx.attributePath.getText(); AttributeReference attributeReference = new AttributeReference(attributePath); String urn = attributeReference.getUrn(); String parentAttributeName = attributeReference.getAttributeName(); FilterExpression attributeExpression = (FilterExpression) expressionStack.pop(); ValuePathExpression valuePathExpression = new ValuePathExpression(attributeReference, attributeExpression); attributeExpression.setAttributePath(urn, parentAttributeName); expressionStack.push(valuePathExpression); }
@Override public void setAttributePath(String urn, String parentAttributeName) { this.attributePath.setUrn(urn); String subAttributeName = this.attributePath.getAttributeName(); this.attributePath.setAttributeName(parentAttributeName); this.attributePath.setSubAttributeName(subAttributeName); this.attributeExpression.setAttributePath(urn, parentAttributeName); }
@Override public void exitPatchPathFull(PatchPathFullContext ctx) { super.exitPatchPathFull(ctx); String attributePathText = ctx.attributePath.getText(); String subAttributeName = ctx.subAttributeName != null ? ctx.subAttributeName.getText() : null; FilterExpression attributeExpression = expressionStack.pop(); AttributeReference attributePath = new AttributeReference(attributePathText); String urn = attributePath.getUrn(); String parentAttributeName = attributePath.getAttributeName(); attributeExpression.setAttributePath(urn, parentAttributeName); if (subAttributeName != null) { attributePath.setAttributeName(parentAttributeName); attributePath.setSubAttributeName(subAttributeName); } this.valuePathExpression = new ValuePathExpression(attributePath, attributeExpression); }