|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object se.chalmers.cs.gf.dialogutil.IclUtil
public class IclUtil
Some general ICL utilities.
Method Summary | |
---|---|
static com.sri.oaa2.icl.IclTerm |
firstMatch(com.sri.oaa2.icl.IclTerm t,
com.sri.oaa2.icl.IclList l)
Get the first term from a list which unifies with a given term. |
static com.sri.oaa2.icl.IclList |
fromList(java.util.List<com.sri.oaa2.icl.IclTerm> l)
Convert a list of IclTerms to an IclList. |
static java.lang.String |
fromStr(com.sri.oaa2.icl.IclTerm t)
Gets the string value of an ICL string. |
static com.sri.oaa2.icl.IclTerm |
icl(java.lang.String s)
Convert a string to an IclTerm. |
static com.sri.oaa2.icl.IclTerm |
matchAndGetVar(com.sri.oaa2.icl.IclTerm t1,
com.sri.oaa2.icl.IclTerm t2,
java.lang.String var)
Unify two terms and get the value of a variable bound by the unifications. |
static java.util.Map<java.lang.String,com.sri.oaa2.icl.IclTerm> |
matchAndGetVars(com.sri.oaa2.icl.IclTerm t1,
com.sri.oaa2.icl.IclTerm t2)
Unify two terms and get the values of all variable bound by the unifications. |
static com.sri.oaa2.icl.IclTerm |
matchInListAndGetVar(com.sri.oaa2.icl.IclTerm t,
com.sri.oaa2.icl.IclList l,
java.lang.String var)
Try unifying a term which each element in a list. |
static java.util.List<com.sri.oaa2.icl.IclTerm> |
toList(com.sri.oaa2.icl.IclList l)
Convert an IclList to a list of IclTerms. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static com.sri.oaa2.icl.IclTerm matchAndGetVar(com.sri.oaa2.icl.IclTerm t1, com.sri.oaa2.icl.IclTerm t2, java.lang.String var)
public static java.util.Map<java.lang.String,com.sri.oaa2.icl.IclTerm> matchAndGetVars(com.sri.oaa2.icl.IclTerm t1, com.sri.oaa2.icl.IclTerm t2)
public static com.sri.oaa2.icl.IclTerm matchInListAndGetVar(com.sri.oaa2.icl.IclTerm t, com.sri.oaa2.icl.IclList l, java.lang.String var)
public static com.sri.oaa2.icl.IclTerm firstMatch(com.sri.oaa2.icl.IclTerm t, com.sri.oaa2.icl.IclList l)
public static com.sri.oaa2.icl.IclTerm icl(java.lang.String s)
public static java.util.List<com.sri.oaa2.icl.IclTerm> toList(com.sri.oaa2.icl.IclList l)
public static com.sri.oaa2.icl.IclList fromList(java.util.List<com.sri.oaa2.icl.IclTerm> l)
public static java.lang.String fromStr(com.sri.oaa2.icl.IclTerm t)
java.lang.ClassCastException
- if the term is not a string.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |