opennlp.grok.expression
Class VariableAdapter
java.lang.Object
|
+--opennlp.grok.expression.CategoryAdapter
|
+--opennlp.grok.expression.VariableAdapter
- All Implemented Interfaces:
- opennlp.common.structure.Category, opennlp.common.unify.CatVar, opennlp.common.synsem.Denoter, java.io.Serializable, opennlp.common.synsem.Synner, opennlp.common.unify.Unifiable, opennlp.common.unify.Variable
- Direct Known Subclasses:
- Var
- public abstract class VariableAdapter
- extends CategoryAdapter
- implements opennlp.common.unify.CatVar
An adapter for variables that implements many of the requirements of
variables and categories.
- Version:
- $Revision: 1.9 $, $Date: 2001/12/05 15:03:42 $
- Author:
- Gann Bierner
- See Also:
- Serialized Form
|
Method Summary |
java.util.Collection |
cannotBe()
|
java.lang.String |
desc()
|
boolean |
equals(java.lang.Object c)
|
opennlp.common.synsem.Denoter |
eval()
|
java.lang.Object |
fill(opennlp.common.unify.Substitution s)
|
static Var |
genVar()
|
opennlp.common.synsem.DominanceHandler |
getDominanceHandler()
|
protected java.lang.String |
getHashString(java.util.HashMap subst,
int[] c)
|
int |
hashCode()
|
java.util.Collection |
mustBe()
|
java.lang.String |
name()
|
boolean |
occurs(opennlp.common.unify.Variable v)
|
void |
setDominanceHandler(opennlp.common.synsem.DominanceHandler _dh)
|
java.lang.String |
toString()
|
java.lang.Object |
unify(java.lang.Object o,
opennlp.common.unify.Substitution sub)
|
java.lang.Object |
unifyCheck(java.lang.Object o)
|
| Methods inherited from class opennlp.grok.expression.CategoryAdapter |
copy, copy, deepMap, forall, getFeature, getFeatureStructure, getSpan, getSpanEnd, getSpanStart, hashString, makeString, prettyLength, prettyPrint, prettyPrint, setFeature, setFeatureStructure, setSpan, shallowEquals, showFeature, tooLong |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface opennlp.common.structure.Category |
copy, deepMap, forall, getFeature, getFeatureStructure, getSpan, getSpanEnd, getSpanStart, hashString, prettyPrint, setFeature, setFeatureStructure, setSpan, shallowEquals |
name
protected java.lang.String name
_cannotCats
protected CatHashSet _cannotCats
_mustCats
protected CatHashSet _mustCats
VariableAdapter
protected VariableAdapter()
VariableAdapter
protected VariableAdapter(java.lang.String n)
genVar
public static Var genVar()
name
public java.lang.String name()
- Specified by:
name in interface opennlp.common.unify.Variable
cannotBe
public java.util.Collection cannotBe()
- Specified by:
cannotBe in interface opennlp.common.unify.Variable
mustBe
public java.util.Collection mustBe()
- Specified by:
mustBe in interface opennlp.common.unify.Variable
setDominanceHandler
public void setDominanceHandler(opennlp.common.synsem.DominanceHandler _dh)
- Specified by:
setDominanceHandler in interface opennlp.common.synsem.Denoter
getDominanceHandler
public opennlp.common.synsem.DominanceHandler getDominanceHandler()
- Specified by:
getDominanceHandler in interface opennlp.common.synsem.Denoter
eval
public opennlp.common.synsem.Denoter eval()
- Specified by:
eval in interface opennlp.common.synsem.Denoter
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
occurs
public boolean occurs(opennlp.common.unify.Variable v)
- Specified by:
occurs in interface opennlp.common.unify.Unifiable- Overrides:
occurs in class CategoryAdapter
unifyCheck
public java.lang.Object unifyCheck(java.lang.Object o)
throws opennlp.common.unify.UnifyFailure
- Specified by:
unifyCheck in interface opennlp.common.unify.Unifiable- Overrides:
unifyCheck in class CategoryAdapter
unify
public java.lang.Object unify(java.lang.Object o,
opennlp.common.unify.Substitution sub)
throws opennlp.common.unify.UnifyFailure
- Specified by:
unify in interface opennlp.common.unify.Unifiable- Overrides:
unify in class CategoryAdapter
fill
public java.lang.Object fill(opennlp.common.unify.Substitution s)
- Specified by:
fill in interface opennlp.common.unify.Unifiable- Overrides:
fill in class CategoryAdapter
equals
public boolean equals(java.lang.Object c)
- Overrides:
equals in class CategoryAdapter
desc
public java.lang.String desc()
- Specified by:
desc in interface opennlp.common.synsem.Denoter
getHashString
protected java.lang.String getHashString(java.util.HashMap subst,
int[] c)
toString
public java.lang.String toString()
- Specified by:
toString in interface opennlp.common.structure.Category- Overrides:
toString in class CategoryAdapter
Copyright © 2001 Jason Baldridge and Gann Bierner. All Rights Reserved.