MOEA Framework 2.12
API Specification

org.moeaframework.util.grammar
Class Symbol

java.lang.Object
  extended by org.moeaframework.util.grammar.Symbol

public class Symbol
extends Object

A context-free grammar symbol.

See Also:
ContextFreeGrammar, Production

Constructor Summary
Symbol(String value, boolean isTerminal)
          Constructs a symbol with the specified value.
 
Method Summary
 boolean equals(Object obj)
           
 String getValue()
          Returns the value of this symbol.
 int hashCode()
           
 boolean isTerminal()
          Returns true if this symbol is a terminal; false otherwise.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Symbol

public Symbol(String value,
              boolean isTerminal)
Constructs a symbol with the specified value.

Parameters:
value - the value of this symbol
isTerminal - true if this symbol is a terminal; false otherwise
Method Detail

getValue

public String getValue()
Returns the value of this symbol.

Returns:
the value of this symbol

isTerminal

public boolean isTerminal()
Returns true if this symbol is a terminal; false otherwise.

Returns:
true if this symbol is a terminal; false otherwise

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

MOEA Framework 2.12
API Specification

Copyright 2009-2016 MOEA Framework. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage. Visit us on Github!