opennlp.grok.expression
Class SetArg

java.lang.Object
  |
  +--opennlp.grok.expression.SetArg
All Implemented Interfaces:
Arg, opennlp.common.unify.Mutable, opennlp.common.unify.Unifiable

public final class SetArg
extends java.lang.Object
implements Arg

A category which contains an unordered set of categories.

Version:
$Revision: 1.10 $, $Date: 2002/11/21 18:03:12 $
Author:
Jason Baldridge

Constructor Summary
SetArg(Arg[] args)
           
SetArg(ArgStack args)
           
SetArg(org.jdom.Element el)
           
 
Method Summary
 void add(ArgStack as)
           
 boolean containsContrarySlash()
           
 Arg copy()
           
 Arg copyWithout(int pos)
           
 void deepMap(opennlp.common.unify.ModFcn mf)
           
 boolean equals(java.lang.Object c)
           
 java.lang.Object fill(opennlp.common.unify.Substitution s)
           
 void forall(opennlp.common.synsem.CategoryFcn fcn)
           
 BasicArg get(int pos)
           
 opennlp.common.synsem.Category getCat(int pos)
           
 java.lang.String hashString(java.util.Map varMap)
          Returns a hash string using the given map from vars to int strings.
 int indexOf(BasicArg a)
           
 int indexOf(opennlp.common.synsem.Category cat)
           
 boolean occurs(opennlp.common.unify.Variable v)
           
 int size()
           
 java.lang.String toString()
           
 java.lang.Object unify(java.lang.Object u, opennlp.common.unify.Substitution sub)
           
 void unifyCheck(java.lang.Object u)
           
 void unifySlash(Slash s)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SetArg

public SetArg(org.jdom.Element el)

SetArg

public SetArg(Arg[] args)

SetArg

public SetArg(ArgStack args)
Method Detail

copy

public Arg copy()
Specified by:
copy in interface Arg

add

public void add(ArgStack as)

forall

public void forall(opennlp.common.synsem.CategoryFcn fcn)
Specified by:
forall in interface Arg

copyWithout

public Arg copyWithout(int pos)

size

public int size()

get

public BasicArg get(int pos)

getCat

public opennlp.common.synsem.Category getCat(int pos)

indexOf

public int indexOf(BasicArg a)
            throws opennlp.common.unify.UnifyFailure
opennlp.common.unify.UnifyFailure

indexOf

public int indexOf(opennlp.common.synsem.Category cat)
            throws opennlp.common.unify.UnifyFailure
opennlp.common.unify.UnifyFailure

containsContrarySlash

public boolean containsContrarySlash()

unifySlash

public void unifySlash(Slash s)
                throws opennlp.common.unify.UnifyFailure
Specified by:
unifySlash in interface Arg
opennlp.common.unify.UnifyFailure

unifyCheck

public void unifyCheck(java.lang.Object u)
                throws opennlp.common.unify.UnifyFailure
Specified by:
unifyCheck in interface opennlp.common.unify.Unifiable
opennlp.common.unify.UnifyFailure

unify

public java.lang.Object unify(java.lang.Object u,
                              opennlp.common.unify.Substitution sub)
                       throws opennlp.common.unify.UnifyFailure
Specified by:
unify in interface opennlp.common.unify.Unifiable
opennlp.common.unify.UnifyFailure

fill

public java.lang.Object fill(opennlp.common.unify.Substitution s)
                      throws opennlp.common.unify.UnifyFailure
Specified by:
fill in interface opennlp.common.unify.Unifiable
opennlp.common.unify.UnifyFailure

deepMap

public void deepMap(opennlp.common.unify.ModFcn mf)
Specified by:
deepMap in interface opennlp.common.unify.Mutable

occurs

public boolean occurs(opennlp.common.unify.Variable v)
Specified by:
occurs in interface opennlp.common.unify.Unifiable

equals

public boolean equals(java.lang.Object c)
Specified by:
equals in interface opennlp.common.unify.Unifiable
Overrides:
equals in class java.lang.Object

toString

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

hashString

public java.lang.String hashString(java.util.Map varMap)
Returns a hash string using the given map from vars to int strings.

Specified by:
hashString in interface Arg


Copyright © 2003 Jason Baldridge and Gann Bierner. All Rights Reserved.