public interface CompoundTerm
EXDRInputStream implement this
interface.
A compound term like p(q(2),a,"b") has functor "p" and arity 3, arg(1) is the term q(2) arg(2) is the term 'a' and arg(3) is the Java String "b".
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
arg(int i)
Return the argument at position
i. |
int |
arity()
Return the number of arguments.
|
java.lang.String |
functor()
Return the functor of the compound term.
|
java.lang.String functor()
int arity()
java.lang.Object arg(int i)
i. The returned object will
instantiate the Java class/interface representing the corresponding ECLiPSe
data type.i - may vary between 1 and arity()