|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcsli.util.FeatureStructure
public class FeatureStructure
| Constructor Summary | |
|---|---|
FeatureStructure()
|
|
FeatureStructure(com.sri.oaa2.icl.IclTerm fs)
should be of the form [ key: value, ...] which is equivalent to [ :(key,value) , ...] |
|
| Method Summary | |
|---|---|
Object |
get(String feature)
Returns either another LFFeatureStructure of an ICLTerm -alexgru Jan 15, 2004 |
Set |
getFeatures()
|
FeatureStructure |
getFS(String feature)
convenience when you know it's a FS; will get a class cast exception if you're wrong |
com.sri.oaa2.icl.IclTerm |
getTerm(String feature)
convenience to get a term; or if it's a fs then it's converted to a term first |
static void |
main(String[] args)
test main -alexgru Feb 26, 2004 |
void |
put(String feature,
Object o)
This will throw a runtime exception if this isn't a feature structure of a iclterm |
void |
putFS(String feature,
FeatureStructure childFS)
|
void |
putTerm(String feature,
com.sri.oaa2.icl.IclTerm term)
|
void |
putTerm(String feature,
String iclStr)
|
com.sri.oaa2.icl.IclTerm |
toIcl()
equivalent to return toIcl(false) -alexgru Jan 21, 2004 |
com.sri.oaa2.icl.IclTerm |
toIcl(boolean addTail)
return an ICL version of the feature structure |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FeatureStructure()
public FeatureStructure(com.sri.oaa2.icl.IclTerm fs)
fs - | Method Detail |
|---|
public static void main(String[] args)
throws antlr_oaa.RecognitionException,
antlr_oaa.TokenStreamException
antlr_oaa.RecognitionException
antlr_oaa.TokenStreamExceptionpublic Object get(String feature)
public Set getFeatures()
public FeatureStructure getFS(String feature)
feature -
public com.sri.oaa2.icl.IclTerm getTerm(String feature)
feature -
public void put(String feature,
Object o)
feature - o - -alexgru Feb 16, 2004
public void putFS(String feature,
FeatureStructure childFS)
public void putTerm(String feature,
com.sri.oaa2.icl.IclTerm term)
public void putTerm(String feature,
String iclStr)
public com.sri.oaa2.icl.IclTerm toIcl()
public com.sri.oaa2.icl.IclTerm toIcl(boolean addTail)
addTail - if this is true, then produce a feature structure with a tail
e.g. [a:b, c:d | _] if it's false, then don't include a tail,
e.g. [a:b, c:d]
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||