public MatchAllDocsQuery build(QueryNode queryNode) throws QueryNodeException {if (!(queryNode instanceof MatchAllDocsQueryNode)) {throw new QueryNodeException(new MessageImpl(QueryParserMessages.LUCENE_QUERY_CONVERSION_ERROR, queryNode.toQueryString(new EscapeQuerySyntaxImpl()), queryNode.getClass().getName()));}return new MatchAllDocsQuery();}

public virtual Query Build(IQueryNode queryNode){if (!(queryNode is MatchAllDocsQueryNode)){throw new QueryNodeException(new Message(QueryParserMessages.LUCENE_QUERY_CONVERSION_ERROR, queryNode.ToQueryString(new EscapeQuerySyntax()), queryNode.GetType().Name));}return new MatchAllDocsQuery();}
