@Override public boolean matches(final INode other, final Match match) { if (other instanceof IdentifierExpression) { final IdentifierExpression identifier = (IdentifierExpression) other; if (_pattern.matcher(identifier.getIdentifier()).matches()) { match.add(_groupName, identifier); return true; } } return false; } }
@Override public final boolean matches(final INode other, final Match match) { match.add(_groupName, other); return other != null && !other.isNull(); } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof IdentifierExpression) { final IdentifierExpression identifier = (IdentifierExpression) other; if (_pattern.matcher(identifier.getIdentifier()).matches()) { match.add(_groupName, identifier); return true; } } return false; } }
@Override public final boolean matches(final INode other, final Match match) { if (_nodeType.isInstance(other)) { match.add(_groupName, other); return !other.isNull(); } return false; } }
@Override public final boolean matches(final INode other, final Match match) { match.add(_groupName, other); return _node.matches(other, match); } }
@Override public final boolean matches(final INode other, final Match match) { if (other instanceof PrimitiveExpression) { final PrimitiveExpression primitive = (PrimitiveExpression) other; if (_primitiveType.isInstance(primitive.getValue())) { match.add(_groupName, other); return true; } } return false; } }
@Override public final boolean matches(final INode other, final Match match) { match.add(_groupName, other); return _node.matches(other, match); } }
@Override public final boolean matches(final INode other, final Match match) { match.add(_groupName, other); return other != null && !other.isNull(); } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof IdentifierExpression) { final IdentifierExpression identifier = (IdentifierExpression) other; if (_pattern.matcher(identifier.getIdentifier()).matches()) { match.add(_groupName, identifier); return true; } } return false; } }
@Override public final boolean matches(final INode other, final Match match) { match.add(_groupName, other); return other != null && !other.isNull(); } }
@Override public final boolean matches(final INode other, final Match match) { if (other instanceof PrimitiveExpression) { final PrimitiveExpression primitive = (PrimitiveExpression) other; if (_primitiveType.isInstance(primitive.getValue())) { match.add(_groupName, other); return true; } } return false; } }
@Override public final boolean matches(final INode other, final Match match) { if (other instanceof PrimitiveExpression) { final PrimitiveExpression primitive = (PrimitiveExpression) other; if (_primitiveType.isInstance(primitive.getValue())) { match.add(_groupName, other); return true; } } return false; } }
@Override public final boolean matches(final INode other, final Match match) { match.add(_groupName, other); return _node.matches(other, match); } }
@Override public final boolean matches(final INode other, final Match match) { if (_nodeType.isInstance(other)) { match.add(_groupName, other); return !other.isNull(); } return false; } }
@Override public final boolean matches(final INode other, final Match match) { if (_nodeType.isInstance(other)) { match.add(_groupName, other); return !other.isNull(); } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof AstNode) { final AstNode reference = (AstNode) other; final MemberReference memberReference = reference.getUserData(Keys.MEMBER_REFERENCE); if (_target.matches(reference, match) && _referenceType.isInstance(memberReference)) { match.add(_groupName, reference); return true; } } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof AstNode) { final AstNode reference = (AstNode) other; final MemberReference memberReference = reference.getUserData(Keys.MEMBER_REFERENCE); if (_target.matches(reference, match) && _referenceType.isInstance(memberReference)) { match.add(_groupName, reference); return true; } } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof MemberReferenceExpression) { final MemberReferenceExpression reference = (MemberReferenceExpression) other; if (_target.matches(reference.getTarget(), match) && _pattern.matcher(reference.getMemberName()).matches()) { match.add(_groupName, reference); return true; } } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof MemberReferenceExpression) { final MemberReferenceExpression reference = (MemberReferenceExpression) other; if (_target.matches(reference.getTarget(), match) && _pattern.matcher(reference.getMemberName()).matches()) { match.add(_groupName, reference); return true; } } return false; } }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof MemberReferenceExpression) { final MemberReferenceExpression reference = (MemberReferenceExpression) other; if (_target.matches(reference.getTarget(), match) && _pattern.matcher(reference.getMemberName()).matches()) { match.add(_groupName, reference); return true; } } return false; } }