net.sf.parser4j.kernelgenerator.entity.grammarnode
Class GrammarNodeNull
java.lang.Object
net.sf.parser4j.kernelgenerator.entity.grammarnode.AbstractGrammarNode
net.sf.parser4j.kernelgenerator.entity.grammarnode.GrammarNodeNull
- All Implemented Interfaces:
- java.lang.Comparable<IGrammarNode>, IGrammarNode
public class GrammarNodeNull
- extends AbstractGrammarNode
- Author:
- luc peuvrier
Methods inherited from class net.sf.parser4j.kernelgenerator.entity.grammarnode.AbstractGrammarNode |
badRecognitionPointIndex, characterValueToString, compareTo, equals, getGrammarNodeType, getMatchClassSimpleName, getNonTerminalIdentifier, getNonTerminalName, hashCode, isEmptyNonTerminal, isEmptyType, isNonTerminal, isStringTerminal, matchClassToString, setMatchClassSimpleName, setNonTerminalIdentifier, setNonTerminalName |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
GrammarNodeNull
public GrammarNodeNull(java.lang.String sonNonTerminalName)
getSonNonTerminalName
public java.lang.String getSonNonTerminalName()
setOperandList
public void setOperandList(java.util.List<OperandGrammarNode> operandList)
accept
public void accept(IGrammarNodeVisitor grammarNodeVisitor)
- Description copied from interface:
IGrammarNode
- visit by a visitor
expectedNonTerminal
public java.util.List<OperandGrammarNode> expectedNonTerminal(int recognitionPointIndex)
- Returns:
- list of expected grammar node for a recognition point index
isTerminal
public boolean isTerminal()
- Specified by:
isTerminal
in interface IGrammarNode
- Overrides:
isTerminal
in class AbstractGrammarNode
- Returns:
- true is this grammar node is a terminal
setToken
public void setToken(boolean token)
- Specified by:
setToken
in interface IGrammarNode
- Overrides:
setToken
in class AbstractGrammarNode
isToken
public boolean isToken()
- Specified by:
isToken
in interface IGrammarNode
- Overrides:
isToken
in class AbstractGrammarNode
- Returns:
- true if this grammar node define a token
isStringToken
public boolean isStringToken()
- Specified by:
isStringToken
in interface IGrammarNode
- Overrides:
isStringToken
in class AbstractGrammarNode
setStringToken
public void setStringToken(boolean stringToken)
- Specified by:
setStringToken
in interface IGrammarNode
- Overrides:
setStringToken
in class AbstractGrammarNode
match
public boolean match(int recognitionPointIndex)
- Returns:
- true if match for recognition point index value
terminalValuesIterator
public java.util.Iterator<TerminalCharRange> terminalValuesIterator()
- Returns:
- iterator on terminal values
nonTerminalToString
protected java.lang.String nonTerminalToString()
- Overrides:
nonTerminalToString
in class AbstractGrammarNode
getRightPart
public int[] getRightPart()
- Returns:
- right part of the rule represented by this grammar node
toDefinitionString
public java.lang.String toDefinitionString()
isIntermediate
public boolean isIntermediate()
- Specified by:
isIntermediate
in interface IGrammarNode
- Overrides:
isIntermediate
in class AbstractGrammarNode
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.