opennlp.grok.expression
Class StringCat

java.lang.Object
  |
  +--opennlp.grok.expression.CategoryAdapter
        |
        +--opennlp.grok.expression.StringCat
All Implemented Interfaces:
opennlp.common.structure.Category, java.io.Serializable, opennlp.common.synsem.Synner, opennlp.common.unify.Unifiable

public class StringCat
extends CategoryAdapter
implements opennlp.common.synsem.Synner

An actual word used in the syntax. This is meant for things like frozen expressions and always occuring function words or particles

Version:
$Revision: 1.1.1.1 $, $Date: 2001/10/23 15:17:51 $
Author:
Gann Bierner
See Also:
Serialized Form

Field Summary
protected  java.lang.String name
           
 
Fields inherited from class opennlp.grok.expression.CategoryAdapter
F
 
Constructor Summary
StringCat(java.lang.String n)
           
StringCat(java.lang.String n, opennlp.common.unify.Feature f)
           
 
Method Summary
 opennlp.common.structure.Category copy()
           
 boolean equals(java.lang.Object o)
           
 java.lang.String name()
           
 boolean occurs(opennlp.common.unify.Variable v)
           
 java.lang.String toString()
           
 
Methods inherited from class opennlp.grok.expression.CategoryAdapter
copy, deepMap, forall, getFeature, getSpan, getSpanEnd, getSpanStart, hashString, makeString, prettyLength, prettyPrint, prettyPrint, setFeature, setSpan, shallowEquals, showFeature, tooLong
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface opennlp.common.structure.Category
deepMap, forall, getFeature, getSpan, getSpanEnd, getSpanStart, hashString, prettyPrint, setFeature, setSpan, shallowEquals
 

Field Detail

name

protected java.lang.String name
Constructor Detail

StringCat

public StringCat(java.lang.String n)

StringCat

public StringCat(java.lang.String n,
                 opennlp.common.unify.Feature f)
Method Detail

name

public java.lang.String name()

equals

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

copy

public opennlp.common.structure.Category copy()
Specified by:
copy in interface opennlp.common.structure.Category
Overrides:
copy in class CategoryAdapter

occurs

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

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.