com.lonniepryor.blues.util
Class Parameters.Builder

java.lang.Object
  |
  +--com.lonniepryor.blues.util.Parameters.Builder
Enclosing class:
Parameters

public abstract static class Parameters.Builder
extends java.lang.Object

Helper class for sequentially constructing the elements of a common TokenizedStrings specification.

Version:
$Revision: 1.1 $
Author:
Lonnie Pryor

Constructor Summary
Parameters.Builder()
           
 
Method Summary
 Parameters endingWithAny()
          Returns a Parameters specification that will allow any number of elements at the end of the sequence.
 Parameters endingWithElement(Types specification)
          Returns a Parameters specification that will require the supplied element at the end of the sequence.
 Parameters endingWithElements(Types[] specifications)
          Returns a Parameters specification that will require the supplied elements at the end of the sequence.
 Parameters.Builder followedByAny()
          Returns a Builder whose resulting Parameters specification will allow any number of elements at this point in the sequence.
 Parameters.Builder followedByElement(Types specification)
          Returns a Builder whose resulting Parameters specification will require the supplied element at this point in the sequence.
 Parameters.Builder followedByElements(Types[] specifications)
          Returns a Builder whose resulting Parameters specification will require the supplied elements at this point in the sequence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parameters.Builder

public Parameters.Builder()
Method Detail

followedByAny

public final Parameters.Builder followedByAny()
Returns a Builder whose resulting Parameters specification will allow any number of elements at this point in the sequence.

Returns:
A Builder whose resulting Parameters specification will allow any number of elements at this point in the sequence.

followedByElement

public final Parameters.Builder followedByElement(Types specification)
Returns a Builder whose resulting Parameters specification will require the supplied element at this point in the sequence.

Parameters:
specification - The specification the element must match.
Returns:
A Builder whose resulting Parameters specification will require the supplied element at this point in the sequence.

followedByElements

public final Parameters.Builder followedByElements(Types[] specifications)
Returns a Builder whose resulting Parameters specification will require the supplied elements at this point in the sequence.

Parameters:
specifications - The specifications the elements must match.
Returns:
A Builder whose resulting Parameters specification will require the supplied elements at this point in the sequence.

endingWithAny

public final Parameters endingWithAny()
Returns a Parameters specification that will allow any number of elements at the end of the sequence.

Returns:
A Parameters specification that will allow any number of elements at the end of the sequence.

endingWithElement

public final Parameters endingWithElement(Types specification)
Returns a Parameters specification that will require the supplied element at the end of the sequence.

Parameters:
specification - The specification the element must match.
Returns:
A Parameters specification that will require the supplied element at the end of the sequence.

endingWithElements

public final Parameters endingWithElements(Types[] specifications)
Returns a Parameters specification that will require the supplied elements at the end of the sequence.

Parameters:
specifications - The specifications the elements must match.
Returns:
A Parameters specification that will require the supplied elements at the end of the sequence.


Copyright © 2003 Blues Framework. All Rights Reserved.