Package com.parctechnologies.eclipse
Class Atom
java.lang.Object
com.parctechnologies.eclipse.AbstractCompoundTerm
com.parctechnologies.eclipse.Atom
- All Implemented Interfaces:
CompoundTerm
An ECLiPSe atom. Although atoms are not strictly compound terms, this class
implements the CompoundTerm interface (it has 0 arguments), so it can be
passed to and returned by
rpc methods.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.parctechnologies.eclipse.AbstractCompoundTerm
arity, equals, functor, hashCodeMethods inherited from interface com.parctechnologies.eclipse.CompoundTerm
arity, functor
-
Constructor Details
-
Atom
Create an Atom given its functor as a String.
-
-
Method Details
-
arg
This always throws an IndexOutOfBoundsException since the Atom has no arguments. Note that a "throws" clause in the CompoundTerm interface is unnecessary since this is RuntimeException.- Specified by:
argin interfaceCompoundTerm- Parameters:
i- may vary between 1 andarity()
-
toString
-