net.sf.parser4j.kernelgenerator.entity.grammarnode.impl
Class AbstractGrammarNodeConcat
java.lang.Object
net.sf.parser4j.kernelgenerator.entity.grammarnode.AbstractGrammarNode
net.sf.parser4j.kernelgenerator.entity.grammarnode.AbstractNonTerminalNode
net.sf.parser4j.kernelgenerator.entity.grammarnode.AbstractMularyGrammarNode
net.sf.parser4j.kernelgenerator.entity.grammarnode.impl.AbstractGrammarNodeConcat
- All Implemented Interfaces:
- java.lang.Comparable<IGrammarNode>, IGrammarNode
- Direct Known Subclasses:
- GrammarNodeConcat, GrammarNodeString
public abstract class AbstractGrammarNodeConcat
- extends AbstractMularyGrammarNode
common to all non terminal node based on concatenation
- Author:
- luc peuvrier
Methods inherited from class net.sf.parser4j.kernelgenerator.entity.grammarnode.AbstractGrammarNode |
badRecognitionPointIndex, characterValueToString, compareTo, equals, getGrammarNodeType, getMatchClassSimpleName, getNonTerminalIdentifier, getNonTerminalName, hashCode, isEmptyType, isIntermediate, isNonTerminal, isStringTerminal, isStringToken, isTerminal, isToken, matchClassToString, nonTerminalToString, setMatchClassSimpleName, setNonTerminalIdentifier, setNonTerminalName, setStringToken, setToken |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
AbstractGrammarNodeConcat
public AbstractGrammarNodeConcat(EnumNodeType grammarNodeType)
isEmptyNonTerminal
public boolean isEmptyNonTerminal()
- Specified by:
isEmptyNonTerminal
in interface IGrammarNode
- Overrides:
isEmptyNonTerminal
in class AbstractGrammarNode
- Returns:
- true if non terminal can be an empty derivation
match
public boolean match(int recognitionPointIndex)
- Returns:
- true if match for recognition point index value
expectedNonTerminal
public java.util.List<OperandGrammarNode> expectedNonTerminal(int recognitionPointIndex)
- Returns:
- list of expected grammar node for a recognition point index
toDefinitionString
public java.lang.String toDefinitionString()
toString
public java.lang.String toString()
- Description copied from interface:
IGrammarNode
- Returns a string full representation of the object.
- Specified by:
toString
in interface IGrammarNode
- Overrides:
toString
in class AbstractGrammarNode
Copyright © 2008-2009 Luc Peuvrier. All Rights Reserved.