Package jpicedt.format.input.util
Class ParserEvent
- java.lang.Object
-
- jpicedt.format.input.util.ParserEvent
-
public class ParserEvent extends java.lang.ObjectAn 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.5.2.1 2007/09/02 11:56:14 reynal Exp $
- Author:
- Sylvain Reynal
-
-
Constructor Summary
Constructors Constructor Description ParserEvent(AbstractRegularExpression source, Context context, boolean parsingSuccessful, java.lang.Object value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContextgetContext()AbstractRegularExpressiongetSource()java.lang.ObjectgetValue()booleanisSuccessful()java.lang.StringtoString()
-
-
-
Constructor Detail
-
ParserEvent
public ParserEvent(AbstractRegularExpression source, Context context, boolean parsingSuccessful, java.lang.Object value)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.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 java.lang.Object getValue()
- Returns:
- a value that generally identifies the result of the parsing operation, such as : number, word, ...
-
-