Package org.moeaframework.util.grammar
Class Symbol
java.lang.Object
org.moeaframework.util.grammar.Symbol
A context-free grammar symbol.
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Symbol
Constructs a symbol with the specified value.- Parameters:
value
- the value of this symbolisTerminal
-true
if this symbol is a terminal;false
otherwise
-
-
Method Details
-
getValue
Returns the value of this symbol.- Returns:
- the value of this symbol
-
isTerminal
public boolean isTerminal()Returnstrue
if this symbol is a terminal;false
otherwise.- Returns:
true
if this symbol is a terminal;false
otherwise
-
hashCode
public int hashCode() -
equals
-