|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--opennlp.grok.expression.AbstractCat | +--opennlp.grok.expression.ComplexCat
A non-recursive representation of complex categories.
Field Summary |
Fields inherited from class opennlp.grok.expression.AbstractCat |
_featStruc, _lf, _next, _previous, SHOW_SEMANTICS |
Constructor Summary | |
ComplexCat(org.jdom.Element el)
Constructor which retrieves the complex category from the XML element. |
|
ComplexCat(TargetCat target,
Arg arg)
Constructor with target and single arg. |
|
ComplexCat(TargetCat target,
ArgStack args)
Constructor with target and arg stack. |
|
ComplexCat(TargetCat target,
ArgStack args,
opennlp.common.synsem.LF lf)
Constructor with target, arg stack and LF. |
Method Summary | |
void |
add(Arg a)
|
void |
add(ArgStack as)
|
void |
addBeforeEnd(ArgStack as)
|
void |
addFront(ArgStack as)
|
int |
arity()
|
boolean |
containsDollarArg()
|
boolean |
containsSetArg()
|
opennlp.common.synsem.Category |
copy()
|
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 f)
|
Arg |
getArg(int pos)
|
ArgStack |
getArgStack()
|
ArgStack |
getArgStack(int from)
|
Arg |
getOuterArg()
|
opennlp.common.synsem.Category |
getResult()
|
opennlp.common.synsem.Category |
getSubResult(int upto)
|
TargetCat |
getTarget()
|
java.lang.String |
hashString(java.util.Map varMap)
Returns a hash string using the given map from vars to int strings. |
void |
insertEnd(ArgStack as)
|
void |
insertFront(ArgStack as)
|
boolean |
occurs(opennlp.common.unify.Variable v)
|
void |
set(int index,
Arg c)
|
void |
setOuterArgument(Arg c)
|
opennlp.common.synsem.Category |
shallowCopy()
|
java.lang.String |
toString()
|
java.lang.Object |
unify(java.lang.Object u,
opennlp.common.unify.Substitution sub)
NB: The LF does not participate in unification. |
void |
unifyCheck(java.lang.Object u)
|
Methods inherited from class opennlp.grok.expression.AbstractCat |
getFeatureStructure, getLF, getNext, getPrevious, hashString, prettyLength, prettyPrint, prettyPrint, setFeatureStructure, setLF, setNext, setPrevious, shallowEquals, showFeature, tooLong |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ComplexCat(TargetCat target, Arg arg)
public ComplexCat(TargetCat target, ArgStack args)
public ComplexCat(TargetCat target, ArgStack args, opennlp.common.synsem.LF lf)
public ComplexCat(org.jdom.Element el)
Method Detail |
public TargetCat getTarget()
public Arg getArg(int pos)
public Arg getOuterArg()
public opennlp.common.synsem.Category getResult()
public opennlp.common.synsem.Category getSubResult(int upto)
public ArgStack getArgStack()
public ArgStack getArgStack(int from)
public boolean containsDollarArg()
public boolean containsSetArg()
public void add(Arg a)
public void add(ArgStack as)
public void addBeforeEnd(ArgStack as)
public void addFront(ArgStack as)
public void insertFront(ArgStack as)
public void insertEnd(ArgStack as)
public void set(int index, Arg c)
public void setOuterArgument(Arg c)
public int arity()
public opennlp.common.synsem.Category copy()
copy
in interface opennlp.common.synsem.Category
copy
in class AbstractCat
public opennlp.common.synsem.Category shallowCopy()
public void deepMap(opennlp.common.unify.ModFcn mf)
deepMap
in interface opennlp.common.unify.Mutable
deepMap
in class AbstractCat
public void forall(opennlp.common.synsem.CategoryFcn f)
forall
in interface opennlp.common.synsem.Category
forall
in class AbstractCat
public void unifyCheck(java.lang.Object u) throws opennlp.common.unify.UnifyFailure
unifyCheck
in interface opennlp.common.unify.Unifiable
unifyCheck
in class AbstractCat
opennlp.common.unify.UnifyFailure
public java.lang.Object unify(java.lang.Object u, opennlp.common.unify.Substitution sub) throws opennlp.common.unify.UnifyFailure
unify
in interface opennlp.common.unify.Unifiable
unify
in class AbstractCat
opennlp.common.unify.UnifyFailure
public boolean occurs(opennlp.common.unify.Variable v)
occurs
in interface opennlp.common.unify.Unifiable
occurs
in class AbstractCat
public java.lang.Object fill(opennlp.common.unify.Substitution s) throws opennlp.common.unify.UnifyFailure
fill
in interface opennlp.common.unify.Unifiable
fill
in class AbstractCat
opennlp.common.unify.UnifyFailure
public boolean equals(java.lang.Object c)
equals
in interface opennlp.common.unify.Unifiable
equals
in class AbstractCat
public java.lang.String toString()
toString
in class AbstractCat
public java.lang.String hashString(java.util.Map varMap)
hashString
in interface opennlp.common.synsem.Category
hashString
in class AbstractCat
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |