jpicedt.format.input.util
Class ParserEvent
java.lang.Object
jpicedt.format.input.util.ParserEvent
public class ParserEvent
- extends Object
An event that gets sent as an argument of the "action" method during an interpret operation
- Since:
- jpicedt 1.3
- Version:
- $Id: ParserEvent.java,v 1.8 2013/03/31 06:59:09 vincentb1 Exp $
- Author:
- Sylvain Reynal
ParserEvent
public ParserEvent(AbstractRegularExpression source,
Context context,
boolean parsingSuccessful,
Object value)
toString
public String toString()
- Overrides:
toString
in class Object
getSource
public AbstractRegularExpression getSource()
- Returns:
- the Expression that sourced this event
getContext
public Context getContext()
- Returns:
- the Context that is attached to current the parsing operation
isSuccessful
public boolean isSuccessful()
- Returns:
- TRUE if this event was emitted as a result of a successful operation
getValue
public Object getValue()
- Returns:
- a value that generally identifies the result of the parsing operation, such as : number, word, ...
Submit a bug : syd@jpicedt.org