/** * <copyright> * </copyright> * * */ package org.emftext.term.propositional.expression.resource.expression; /** * Implementations of this interface are used store the result of resolving a * token. */ public interface IExpressionTokenResolveResult { /** * Returns the error message that describes what went wrong while resolving a * token. */ public String getErrorMessage(); /** * Sets the error message that describes what went wrong while resolving a token. * If a mapping for the token was already found (i.e., setResult() was called * before), the call to this method is ignored. If setResult() is called * afterwards, the error message is also discarded. * * @param message the error that prevented resolving the token */ public void setErrorMessage(String message); /** * Sets the result of resolving a token. * * @param resolvedToken the object the token was resolved to */ public void setResolvedToken(Object resolvedToken); /** * Returns the result of resolving a token or null if it could not be resolved * correctly. * * @return the object the token was resolved to */ public Object getResolvedToken(); }