@Override public boolean matches(final INode other, final Match match) { if (other instanceof AssertStatement) { final AssertStatement otherAssert = (AssertStatement) other; return getCondition().matches(otherAssert.getCondition(), match) && getMessage().matches(otherAssert.getMessage()); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof AssertStatement) { final AssertStatement otherAssert = (AssertStatement) other; return getCondition().matches(otherAssert.getCondition(), match) && getMessage().matches(otherAssert.getMessage()); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof AssertStatement) { final AssertStatement otherAssert = (AssertStatement) other; return getCondition().matches(otherAssert.getCondition(), match) && getMessage().matches(otherAssert.getMessage()); } return false; } }
@Override public Void visitAssertStatement(final AssertStatement node, final Void ignored) { startNode(node); writeKeyword(AssertStatement.ASSERT_KEYWORD_ROLE); space(); node.getCondition().acceptVisitor(this, ignored); final Expression message = node.getMessage(); if (message != null && !message.isNull()) { space(); writeToken(Roles.COLON); space(); message.acceptVisitor(this, ignored); } semicolon(); endNode(node); return null; }
@Override public Void visitAssertStatement(final AssertStatement node, final Void ignored) { startNode(node); writeKeyword(AssertStatement.ASSERT_KEYWORD_ROLE); space(); node.getCondition().acceptVisitor(this, ignored); final Expression message = node.getMessage(); if (message != null && !message.isNull()) { space(); writeToken(Roles.COLON); space(); message.acceptVisitor(this, ignored); } semicolon(); endNode(node); return null; }
@Override public Void visitAssertStatement(final AssertStatement node, final Void ignored) { startNode(node); writeKeyword(AssertStatement.ASSERT_KEYWORD_ROLE); space(); node.getCondition().acceptVisitor(this, ignored); final Expression message = node.getMessage(); if (message != null && !message.isNull()) { space(); writeToken(Roles.COLON); space(); message.acceptVisitor(this, ignored); } semicolon(); endNode(node); return null; }