net.sf.parser4j.generator.entity.grammardefnode
Class StatementDef
java.lang.Object
net.sf.parser4j.generator.entity.grammardefnode.StatementDef
- All Implemented Interfaces:
- IGrammarDefNode, IParseNodeData
public class StatementDef
- extends java.lang.Object
- implements IGrammarDefNode
- Author:
- luc peuvrier
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
StatementDef
public StatementDef(StatementDef left,
StatementDef right,
EnumStatementDefType statementDefType)
StatementDef
public StatementDef()
StatementDef
public StatementDef(IdDef idDef)
StatementDef
public StatementDef(java.util.List<java.lang.Character> charList)
StatementDef
public StatementDef(java.lang.String terminalString)
StatementDef
public StatementDef(char terminalValue)
StatementDef
public StatementDef(StatementDef list,
StatementDef elt)
StatementDef
public StatementDef(char first,
char last)
StatementDef
public StatementDef(StatementDef list,
char terminalValue)
StatementDef
public StatementDef(StatementDef statementDef,
java.lang.String nonTerminalDefinedName)
changeToConcat
public void changeToConcat()
- change this statement definition to concat statement definition
changeToConcat
public void changeToConcat(StatementDef sonStatementDef)
- change this statement definition to concat statement definition
- Parameters:
sonStatementDef
- son of this new concat statement definition
getStatementDefType
public EnumStatementDefType getStatementDefType()
setMatchClassName
public void setMatchClassName(java.lang.String matchClassName)
getMatchClassName
public java.lang.String getMatchClassName()
setNonTerminalDefinedName
public void setNonTerminalDefinedName(java.lang.String nonTerminalDefinedName)
getNonTerminalDefinedName
public java.lang.String getNonTerminalDefinedName()
isToken
public boolean isToken()
isStringToken
public boolean isStringToken()
setTokenSon
public void setTokenSon(boolean tokenSon)
throws GeneratorException
- Parameters:
tokenSon
- the tokenSon to set
- Throws:
GeneratorException
isTokenSon
public boolean isTokenSon()
throws GeneratorException
- Throws:
GeneratorException
setStringTokenSon
public void setStringTokenSon(boolean stringTokenSon)
throws GeneratorException
- Parameters:
stringTokenSon
- the tokenSon to set
- Throws:
GeneratorException
isStringTokenSon
public boolean isStringTokenSon()
throws GeneratorException
- Throws:
GeneratorException
isTerminal
public boolean isTerminal()
isNonTerminalDefType
public boolean isNonTerminalDefType()
isEmptyDefType
public boolean isEmptyDefType()
setIsToken
public void setIsToken()
setIsStringToken
public void setIsStringToken()
getWhiteSpaceNonTerminalName
public java.lang.String getWhiteSpaceNonTerminalName()
setWhiteSpaceNonTerminalName
public void setWhiteSpaceNonTerminalName(java.lang.String whiteSpaceNonTerminalName)
getNonTerminalName
public java.lang.String getNonTerminalName()
getTerminalString
public java.lang.String getTerminalString()
getTerminalCharValue
public char getTerminalCharValue()
getSetOfTerminal
public java.util.List<StatementDef> getSetOfTerminal()
getFirstTerminalValue
public char getFirstTerminalValue()
getLastTerminalValue
public char getLastTerminalValue()
getTerminalSet
public java.util.Set<java.lang.Integer> getTerminalSet()
getOperandList
public java.util.List<StatementDef> getOperandList()
getFatherStatementDef
public StatementDef getFatherStatementDef()
isIntermediate
public boolean isIntermediate()
accept
public void accept(IGrammarDefVisitor visitor)
throws GrammarDefNodeVisitException
- Specified by:
accept
in interface IGrammarDefNode
- Throws:
GrammarDefNodeVisitException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2008-2009 Luc Peuvrier. All Rights Reserved.