net.sf.parser4j.generator.entity.grammardefnode
Class StatementDef

java.lang.Object
  extended by net.sf.parser4j.generator.entity.grammardefnode.StatementDef
All Implemented Interfaces:
IGrammarDefNode, IParseNodeData

public class StatementDef
extends java.lang.Object
implements IGrammarDefNode

Author:
luc peuvrier

Constructor Summary
StatementDef()
           
StatementDef(char terminalValue)
           
StatementDef(char first, char last)
           
StatementDef(IdDef idDef)
           
StatementDef(java.util.List<java.lang.Character> charList)
           
StatementDef(StatementDef list, char terminalValue)
           
StatementDef(StatementDef list, StatementDef elt)
           
StatementDef(StatementDef left, StatementDef right, EnumStatementDefType statementDefType)
           
StatementDef(StatementDef statementDef, java.lang.String nonTerminalDefinedName)
           
StatementDef(java.lang.String terminalString)
           
 
Method Summary
 void accept(IGrammarDefVisitor visitor)
           
 void changeToConcat()
          change this statement definition to concat statement definition
 void changeToConcat(StatementDef sonStatementDef)
          change this statement definition to concat statement definition
 StatementDef getFatherStatementDef()
           
 char getFirstTerminalValue()
           
 char getLastTerminalValue()
           
 java.lang.String getMatchClassName()
           
 java.lang.String getNonTerminalDefinedName()
           
 java.lang.String getNonTerminalName()
           
 java.util.List<StatementDef> getOperandList()
           
 java.util.List<StatementDef> getSetOfTerminal()
           
 EnumStatementDefType getStatementDefType()
           
 char getTerminalCharValue()
           
 java.util.Set<java.lang.Integer> getTerminalSet()
           
 java.lang.String getTerminalString()
           
 java.lang.String getWhiteSpaceNonTerminalName()
           
 boolean isEmptyDefType()
           
 boolean isIntermediate()
           
 boolean isNonTerminalDefType()
           
 boolean isStringToken()
           
 boolean isStringTokenSon()
           
 boolean isTerminal()
           
 boolean isToken()
           
 boolean isTokenSon()
           
 void setIsStringToken()
           
 void setIsToken()
           
 void setMatchClassName(java.lang.String matchClassName)
           
 void setNonTerminalDefinedName(java.lang.String nonTerminalDefinedName)
           
 void setStringTokenSon(boolean stringTokenSon)
           
 void setTokenSon(boolean tokenSon)
           
 void setWhiteSpaceNonTerminalName(java.lang.String whiteSpaceNonTerminalName)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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.