public class Atom extends AbstractCompoundTerm implements CompoundTerm
CompoundTerm
Constructor and Description |
---|
Atom(java.lang.String functor)
Create an Atom given its functor as a String.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
arg(int i)
This always throws an IndexOutOfBoundsException since the Atom has no arguments.
|
java.lang.String |
toString() |
arity, equals, functor, hashCode
arity, functor
public Atom(java.lang.String functor)
public java.lang.Object arg(int i)
arg
in interface CompoundTerm
i
- may vary between 1 and arity()
public java.lang.String toString()
toString
in class java.lang.Object