net.sf.parser4j.parser.entity.parsestate
Class SyntaxParseState
java.lang.Object
net.sf.parser4j.parser.entity.parsestate.AbstractParseState
net.sf.parser4j.parser.entity.parsestate.SyntaxParseState
- All Implemented Interfaces:
- java.lang.Iterable<ParseStack>, IParseState
public class SyntaxParseState
- extends AbstractParseState
specialization for syntax analysis: token recognition management
- Author:
- luc peuvrier
Constructor Summary |
SyntaxParseState(boolean acceptAmbiguity,
int maxNumberOfAlternative,
boolean[] tokenRecognition,
boolean[] stringTokenRecognition,
ParsingToStringUtil parsingToStringUtil)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SyntaxParseState
public SyntaxParseState(boolean acceptAmbiguity,
int maxNumberOfAlternative,
boolean[] tokenRecognition,
boolean[] stringTokenRecognition,
ParsingToStringUtil parsingToStringUtil)
add
public boolean add(ParseStack parseStack)
throws ParserException,
HasAmbiguityParserException
- Specified by:
add
in interface IParseState
- Overrides:
add
in class AbstractParseState
- Returns:
- true if added, else it is an alternative to existing ( ambiguous)
- Throws:
ParserException
HasAmbiguityParserException
- reject ambiguity
hasTokenRecognition
public boolean hasTokenRecognition()
hasStringTokenRecognition
public boolean hasStringTokenRecognition()
poolTokenRecognitionParseStackList
public java.util.List<ParseStack> poolTokenRecognitionParseStackList()
clearStringTokenRecognition
public void clearStringTokenRecognition()
Copyright © 2008-2009 Luc Peuvrier. All Rights Reserved.