opennlp.grok.expression
Class BasicArg
java.lang.Object
|
+--opennlp.grok.expression.BasicArg
- All Implemented Interfaces:
- Arg, opennlp.common.unify.Mutable, opennlp.common.unify.Unifiable
- public final class BasicArg
- extends java.lang.Object
- implements Arg
A basic argument that contains a slash and a category.
- Version:
- $Revision: 1.8 $, $Date: 2002/11/21 18:03:12 $
- Author:
- Jason Baldridge
Constructor Summary |
BasicArg(Slash s,
opennlp.common.synsem.Category c)
|
Method Summary |
Arg |
copy()
|
void |
deepMap(opennlp.common.unify.ModFcn mf)
|
java.lang.Object |
fill(opennlp.common.unify.Substitution sub)
|
void |
forall(opennlp.common.synsem.CategoryFcn fcn)
|
opennlp.common.synsem.Category |
getCat()
|
Slash |
getSlash()
|
java.lang.String |
hashString(java.util.Map varMap)
Returns a hash string using the given map from vars to int strings. |
boolean |
occurs(opennlp.common.unify.Variable v)
|
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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface opennlp.common.unify.Unifiable |
equals |
BasicArg
public BasicArg(Slash s,
opennlp.common.synsem.Category c)
copy
public Arg copy()
- Specified by:
copy
in interface Arg
getSlash
public Slash getSlash()
getCat
public opennlp.common.synsem.Category getCat()
occurs
public boolean occurs(opennlp.common.unify.Variable v)
- Specified by:
occurs
in interface opennlp.common.unify.Unifiable
fill
public java.lang.Object fill(opennlp.common.unify.Substitution sub)
throws opennlp.common.unify.UnifyFailure
- Specified by:
fill
in interface opennlp.common.unify.Unifiable
opennlp.common.unify.UnifyFailure
forall
public void forall(opennlp.common.synsem.CategoryFcn fcn)
- Specified by:
forall
in interface Arg
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
deepMap
public void deepMap(opennlp.common.unify.ModFcn mf)
- Specified by:
deepMap
in interface opennlp.common.unify.Mutable
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.