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, ElementDef, EmptyProgram, EmptyString, EndElement, EOF, Epsilon, Error, Fractional, HorizontalWhitespace, Identifier, IgnoreWhitespace, Include, Integral, Kernel, Letter, List, ListAdd, Literal, LiteralNC, Named, Namespace, Negate, Newline, NotLiteral, NumericValue, Push, Rot, 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
popstr
protected String popstr(Stack stack)
throws ParsingException
- Throws:
ParsingException