コード例 #1
0
  @Override
  public String visit(AttributeCondition attributeCondition) {
    if (attributeCondition.getAttributePath() == null
        || attributeCondition.getOperatorAndArgument() == null) {
      throw new IllegalStateException("Incomplete sentence. Missing attribute path or operator.");
    }

    return attributeCondition.getOperatorAndArgument().accept(this);
  }