org.globus.cog.karajan.parser.atoms
Class AbstractAtom
java.lang.Object
org.globus.cog.karajan.parser.AbstractGrammarElement
org.globus.cog.karajan.parser.atoms.AbstractAtom
- All Implemented Interfaces:
- GrammarElement
- Direct Known Subclasses:
- AbstractBinaryNumericAtom, Alphanumeric, AnyToken, BeginElement, Comma, CommaSeparator, Concat, Concat, Digits, Drop, EmptyProgram, EmptyString, EndElement, EOF, Epsilon, Error, Fractional, HorizontalWhitespace, Identifier, IgnoreWhitespace, Include, Integral, Letter, List, ListAdd, Literal, Named, Namespace, Newline, NotLiteral, NumericValue, Push, SingleLineComment, StringAtom, StringToken, StringValue, Swap, Transliterate, Underscore, Variable, Variable
- public abstract class AbstractAtom
- extends AbstractGrammarElement
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractAtom
public AbstractAtom()
newInstance
public static AbstractAtom newInstance(PeekableEnumeration st,
AtomMapping mapping)
setParams
protected void setParams(String[] params)
read
public final void read(PeekableEnumeration st,
AtomMapping mapping)
_optimize
public GrammarElement _optimize(Rules rules)
- Specified by:
_optimize in class AbstractGrammarElement
parse
public boolean parse(ParserContext context,
Stack stack)
throws ParsingException
- Throws:
ParsingException
evaluate
public Object evaluate(EvaluationContext variables)
throws EvaluationException
- Throws:
EvaluationException