public class term2string extends DefaultInternalAction
Internal action: .term2string(T,S)
.
Description: converts the term T into a string S and vice-versa.
Parameters:
Examples:
.term2string(b,"b")
: true.
.term2string(b,X)
: unifies X with "b".
.term2string(X,"b")
: unified X with b.
concat
,
delete
,
length
,
reverse
,
Serialized FormConstructor and Description |
---|
term2string() |
Modifier and Type | Method and Description |
---|---|
static InternalAction |
create() |
java.lang.Object |
execute(TransitionSystem ts,
Unifier un,
Term[] args)
Executes the internal action.
|
int |
getMaxArgs() |
int |
getMinArgs() |
canBeUsedInContext, checkArguments, destroy, prepareArguments, suspendIntention
public static InternalAction create()
public int getMinArgs()
getMinArgs
in class DefaultInternalAction
public int getMaxArgs()
getMaxArgs
in class DefaultInternalAction
public java.lang.Object execute(TransitionSystem ts, Unifier un, Term[] args) throws java.lang.Exception
InternalAction
execute
in interface InternalAction
execute
in class DefaultInternalAction
java.lang.Exception