Parsing Engine

danbikel.parser
Class SubcatListFactory

java.lang.Object
  extended by danbikel.parser.SubcatListFactory
All Implemented Interfaces:
SubcatFactory, Serializable

public class SubcatListFactory
extends Object
implements SubcatFactory

A factory for creating SubcatList objects.

See Also:
SubcatList, Subcats, Settings.subcatFactoryClass, Serialized Form

Constructor Summary
SubcatListFactory()
          Constructs a new SubcatListFactory.
 
Method Summary
 Subcat get()
          Returns an empty SubcatList.
 Subcat get(SexpList list)
          Returns a SubcatList initialized with the requirements contained in the specified list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubcatListFactory

public SubcatListFactory()
Constructs a new SubcatListFactory.

Method Detail

get

public Subcat get()
Returns an empty SubcatList.

Specified by:
get in interface SubcatFactory

get

public Subcat get(SexpList list)
Returns a SubcatList initialized with the requirements contained in the specified list.

Specified by:
get in interface SubcatFactory
Parameters:
list - a list of Symbol objects to be added as requirements to a new SubcatList instance

Parsing Engine

Author: Dan Bikel.