Parsing Engine

danbikel.parser.constraints
Class PartialTreeConstraintSetFactory

java.lang.Object
  extended by danbikel.parser.constraints.PartialTreeConstraintSetFactory
All Implemented Interfaces:
ConstraintSetFactory

public class PartialTreeConstraintSetFactory
extends Object
implements ConstraintSetFactory

Factory to produce PartialTreeConstraintSet objects.


Constructor Summary
PartialTreeConstraintSetFactory()
          Returns a new factory for PartialTreeConstraintSet objects.
 
Method Summary
 ConstraintSet get()
          Returns an empty partial tree constraint set.
 ConstraintSet get(Object tree)
          Returns a partial tree constraint set for the specified tree, which must be a Sexp instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartialTreeConstraintSetFactory

public PartialTreeConstraintSetFactory()
Returns a new factory for PartialTreeConstraintSet objects.

Method Detail

get

public ConstraintSet get()
Returns an empty partial tree constraint set.

Specified by:
get in interface ConstraintSetFactory
Returns:
an empty partial tree constraint set.

get

public ConstraintSet get(Object tree)
Returns a partial tree constraint set for the specified tree, which must be a Sexp instance.

Specified by:
get in interface ConstraintSetFactory
Parameters:
tree - a Sexp representing a tree from which to construct a set of partial tree constraints
Returns:
a partial tree constraint set constructed from the specified syntactic tree

Parsing Engine

Author: Dan Bikel.