opennlp.grok.expression
Class Dollar
java.lang.Object
|
+--opennlp.grok.expression.Dollar
- All Implemented Interfaces:
- Arg, opennlp.common.unify.Indexed, opennlp.common.unify.Mutable, opennlp.common.unify.Unifiable, opennlp.common.unify.Variable
- public final class Dollar
- extends java.lang.Object
- implements Arg, opennlp.common.unify.Variable, opennlp.common.unify.Mutable, opennlp.common.unify.Indexed
A variable representing a stack of arguments
- Version:
- $Revision: 1.20 $, $Date: 2002/11/21 18:03:12 $
- Author:
- Jason Baldridge
Method Summary |
Arg |
copy()
|
void |
deepMap(opennlp.common.unify.ModFcn mf)
|
boolean |
equals(java.lang.Object o)
|
java.lang.Object |
fill(opennlp.common.unify.Substitution sub)
|
void |
forall(opennlp.common.synsem.CategoryFcn fcn)
|
int |
getIndex()
|
Slash |
getSlash()
|
int |
hashCode()
|
java.lang.String |
hashString(java.util.Map varMap)
Returns a hash string using the given map from vars to int strings. |
java.lang.String |
name()
|
boolean |
occurs(opennlp.common.unify.Variable v)
|
void |
setIndex(int uniqueIndex)
|
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, notify, notifyAll, wait, wait, wait |
Dollar
public Dollar(java.lang.String name)
Dollar
public Dollar(Slash s,
java.lang.String name)
Dollar
public Dollar(Slash s,
java.lang.String name,
int id)
name
public java.lang.String name()
- Specified by:
name
in interface opennlp.common.unify.Variable
getIndex
public int getIndex()
- Specified by:
getIndex
in interface opennlp.common.unify.Indexed
setIndex
public void setIndex(int uniqueIndex)
- Specified by:
setIndex
in interface opennlp.common.unify.Indexed
copy
public Arg copy()
- Specified by:
copy
in interface Arg
forall
public void forall(opennlp.common.synsem.CategoryFcn fcn)
- Specified by:
forall
in interface Arg
getSlash
public Slash getSlash()
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals
in interface opennlp.common.unify.Unifiable
- Overrides:
equals
in class java.lang.Object
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
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
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.