|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectua.gradsoft.termware.TermHelper
public class TermHelper
Helper class for terms operations
| Constructor Summary | |
|---|---|
TermHelper()
|
|
| Method Summary | |
|---|---|
static Term |
attributeTree(Term tree,
String attrName,
Term attribute,
TermCondition condition)
attribute tree: i.e. |
static int |
compareNameIndexes(Object x,
Object y)
|
static Term |
copyAttributes(Term dst,
Term src)
copy attributes from src term to dst term |
static Term |
escapeX(Term t)
change $x entites to _x(minFv($x)). |
static Term |
getAttribute(Term t,
String name)
get attribute name of term t |
static boolean |
isAttributed(Term t)
return true, if term is attributed. |
static Term |
reverseList(TermWareInstance instance,
Term t)
reverse list |
static Term |
setAttribute(Term t,
String name,
int attribute)
set int attribute |
static Term |
setAttribute(Term t,
String name,
String attribute)
set string attribute |
static Term |
setAttribute(Term t,
String name,
Term attribute)
set attribute to term. |
static Term |
stringToName(String name)
transform string in form (x/y/z) to form _name(x,y,z); |
static String |
termToPrettyString(Term t)
|
static String |
termToPrettyString(Term t,
String languageName,
Term printerArgs)
pretty print t |
static String |
termToString(Term t)
|
static Term |
unescapeX(Term t)
change _x(i) entites to $i |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TermHelper()
| Method Detail |
|---|
public static String termToString(Term t)
t
public static String termToPrettyString(Term t,
String languageName,
Term printerArgs)
throws TermWareException
t
TermWareException
public static String termToPrettyString(Term t)
throws TermWareException
TermWareException
public static int compareNameIndexes(Object x,
Object y)
public static Term setAttribute(Term t,
String name,
Term attribute)
public static Term setAttribute(Term t,
String name,
String attribute)
setAttribute(ua.gradsoft.termware.Term, java.lang.String, ua.gradsoft.termware.Term)
public static Term setAttribute(Term t,
String name,
int attribute)
setAttribute(ua.gradsoft.termware.Term, java.lang.String, ua.gradsoft.termware.Term)
public static Term getAttribute(Term t,
String name)
name of term t
t - termname - name of attribute to get.
name of term t or NIL, if attribute is
not set or term is not attributed.AttributedTerm
public static Term copyAttributes(Term dst,
Term src)
src term to dst term
public static boolean isAttributed(Term t)
public static Term attributeTree(Term tree,
String attrName,
Term attribute,
TermCondition condition)
throws TermWareException
TermWareException
public static Term escapeX(Term t)
throws TermWareException
t - - term to change. (can be changed during processing).
TermWareException
public static Term unescapeX(Term t)
throws TermWareException
t - - term to change. (can be changed during processing).
TermWareException
public static Term stringToName(String name)
throws TermWareException
TermWareException
public static Term reverseList(TermWareInstance instance,
Term t)
throws TermWareException
TermWareException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||