net.sf.parser4j.kernelgenerator.entity.grammarnode
Class AbstractTerminalNode

java.lang.Object
  extended by net.sf.parser4j.kernelgenerator.entity.grammarnode.AbstractGrammarNode
      extended by net.sf.parser4j.kernelgenerator.entity.grammarnode.AbstractTerminalNode
All Implemented Interfaces:
java.lang.Comparable<IGrammarNode>, IGrammarNode
Direct Known Subclasses:
GrammarNodeTerminalChar, GrammarNodeTerminalCharRange, GrammarNodeTerminalCharSet, GrammarNodeTerminalSetOfTerminal

public abstract class AbstractTerminalNode
extends AbstractGrammarNode

common to all terminal grammar node

Author:
luc peuvrier

Field Summary
 
Fields inherited from class net.sf.parser4j.kernelgenerator.entity.grammarnode.AbstractGrammarNode
emptyNonTerminal, matchClassSimpleName, nonTerminalName
 
Constructor Summary
protected AbstractTerminalNode()
           
 
Method Summary
 void accept(IGrammarNodeVisitor grammarNodeVisitor)
          visit by a visitor
 java.util.List<OperandGrammarNode> expectedNonTerminal(int recognitionPointIndex)
           
 int[] getRightPart()
           
 boolean match(int recognitionPointIndex)
           
 void setOperandList(java.util.List<OperandGrammarNode> operandList)
           
abstract  java.lang.String valueToString()
           
 
Methods inherited from class net.sf.parser4j.kernelgenerator.entity.grammarnode.AbstractGrammarNode
badRecognitionPointIndex, characterValueToString, compareTo, equals, getGrammarNodeType, getMatchClassSimpleName, getNonTerminalIdentifier, getNonTerminalName, hashCode, isEmptyNonTerminal, isEmptyType, isIntermediate, isNonTerminal, isStringTerminal, isStringToken, isTerminal, isToken, matchClassToString, nonTerminalToString, setMatchClassSimpleName, setNonTerminalIdentifier, setNonTerminalName, setStringToken, setToken, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sf.parser4j.kernelgenerator.entity.grammarnode.IGrammarNode
terminalValuesIterator, toDefinitionString
 

Constructor Detail

AbstractTerminalNode

protected AbstractTerminalNode()
Method Detail

setOperandList

public void setOperandList(java.util.List<OperandGrammarNode> operandList)

match

public boolean match(int recognitionPointIndex)
Returns:
true if match for recognition point index value

getRightPart

public int[] getRightPart()
Returns:
right part of the rule represented by this grammar node

accept

public void accept(IGrammarNodeVisitor grammarNodeVisitor)
            throws GrammarNodeVisitException
Description copied from interface: IGrammarNode
visit by a visitor

Throws:
GrammarNodeVisitException

expectedNonTerminal

public java.util.List<OperandGrammarNode> expectedNonTerminal(int recognitionPointIndex)
Returns:
list of expected grammar node for a recognition point index

valueToString

public abstract java.lang.String valueToString()


Copyright © 2008-2009 Luc Peuvrier. All Rights Reserved.