com.varankin.bnf
Class DefinitionsList

java.lang.Object
  extended by com.varankin.bnf.Container<SingleDefinition>
      extended by com.varankin.bnf.DefinitionsList
All Implemented Interfaces:
java.lang.Iterable<SingleDefinition>

public class DefinitionsList
extends Container<SingleDefinition>

A definitions-list consists of an ordered list of one or more single-definitions separated from each other by a definition-separator-symbol.

Author:
© 2009 Nikolai Varankine

Constructor Summary
DefinitionsList(java.util.Collection<SingleDefinition> aDefinitions)
           
DefinitionsList(SingleDefinition... aDefinitions)
           
 
Method Summary
 
Methods inherited from class com.varankin.bnf.Container
iterator, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefinitionsList

public DefinitionsList(java.util.Collection<SingleDefinition> aDefinitions)
Parameters:
aDefinitions - single definitions finally comprising the definitions list.
Throws:
java.lang.NullPointerException - if definitions are null.
java.lang.IllegalArgumentException - if no definitions were supplied.

DefinitionsList

public DefinitionsList(SingleDefinition... aDefinitions)
Parameters:
aDefinitions - single definitions finally comprising the definitions list.
Throws:
java.lang.NullPointerException - if definitions are null.
java.lang.IllegalArgumentException - if no definitions were supplied.