net.sf.parser4j.kernelgenerator.entity.grammarnode.impl
Class GrammarNodeAlternative

java.lang.Object
  extended by net.sf.parser4j.kernelgenerator.entity.grammarnode.AbstractGrammarNode
      extended by net.sf.parser4j.kernelgenerator.entity.grammarnode.AbstractNonTerminalNode
          extended by net.sf.parser4j.kernelgenerator.entity.grammarnode.AbstractMularyGrammarNode
              extended by net.sf.parser4j.kernelgenerator.entity.grammarnode.impl.GrammarNodeAlternative
All Implemented Interfaces:
java.lang.Comparable<IGrammarNode>, IGrammarNode
Direct Known Subclasses:
GrammarNodeAlternativeSpringBean

public class GrammarNodeAlternative
extends AbstractMularyGrammarNode

alternative grammar node

Author:
luc peuvrier

Field Summary
 
Fields inherited from class net.sf.parser4j.kernelgenerator.entity.grammarnode.AbstractMularyGrammarNode
operandList
 
Fields inherited from class net.sf.parser4j.kernelgenerator.entity.grammarnode.AbstractNonTerminalNode
EMPTY_LIST
 
Fields inherited from class net.sf.parser4j.kernelgenerator.entity.grammarnode.AbstractGrammarNode
emptyNonTerminal, matchClassSimpleName, nonTerminalName
 
Constructor Summary
GrammarNodeAlternative()
           
 
Method Summary
 java.util.List<OperandGrammarNode> expectedNonTerminal(int recognizePointIndex)
           
 boolean isEmptyNonTerminal()
           
 boolean match(int recognizePointIndex)
           
 java.lang.String toDefinitionString()
           
 java.lang.String toString()
          Returns a string full representation of the object.
 
Methods inherited from class net.sf.parser4j.kernelgenerator.entity.grammarnode.AbstractMularyGrammarNode
accept, assertOperandListSetted, getOperandList, getRightPart, setOperandList
 
Methods inherited from class net.sf.parser4j.kernelgenerator.entity.grammarnode.AbstractNonTerminalNode
terminalValuesIterator
 
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
 

Constructor Detail

GrammarNodeAlternative

public GrammarNodeAlternative()
Method Detail

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 recognizePointIndex)
Returns:
true if match for recognition point index value

expectedNonTerminal

public java.util.List<OperandGrammarNode> expectedNonTerminal(int recognizePointIndex)
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.