org.databene.regex
Class Choice

java.lang.Object
  extended by org.databene.regex.Choice

public class Choice
extends java.lang.Object

Represents an alternative expression part of a regular expression, e.g. '(yes|no)'.
Created: 17.09.2006 16:14:14


Constructor Summary
Choice(java.util.List<java.lang.Object> alternatives)
          Constructor that takes a list of alternative patterns
Choice(java.lang.Object... alternatives)
          Constructor that takes an array of alternative patterns
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.Object[] getAlternatives()
          Returns the alternative patterns
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Choice

public Choice(java.util.List<java.lang.Object> alternatives)
Constructor that takes a list of alternative patterns


Choice

public Choice(java.lang.Object... alternatives)
Constructor that takes an array of alternative patterns

Method Detail

getAlternatives

public java.lang.Object[] getAlternatives()
Returns the alternative patterns


equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(Object)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2010. All Rights Reserved.