All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.rabbitmq.jms.parse.Parser Maven / Gradle / Ivy

There is a newer version: 3.4.0
Show newest version
/* Copyright (c) 2013 Pivotal Software, Inc. All rights reserved. */
package com.rabbitmq.jms.parse;

/**
 * A {@link Parser} produces a parse tree of nodes.
 * 

* Parsing never throws an exception but instead sets a success indicator and error message. *

* * @param - type of node in the ParseTree produced */ public interface Parser { /** * This method returns the parse tree. It is idempotent. * * @return a {@link ParseTree ParseTree<Node>} capturing the result of a complete parse attempt. */ ParseTree parse(); /** * This call is idempotent. * @return true if the parse completed successfully, otherwise false, in which case the * termination message is set. */ boolean parseOk(); /** * This call is idempotent. * @return a string with a reason for termination. Only valid if {@link #parseOk()} returns false. */ String getErrorMessage(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy