jpl
public class Atom extends Compound
Atom a = new Atom("hello");An Atom can be used (and re-used) as an argument of Compound Terms. Two Atom instances are equal (by equals()) iff they have equal names.
Copyright (C) 1998 Fred Dushin
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library Public License for more details.
Constructor Summary | |
---|---|
Atom(String name) |
Method Summary | |
---|---|
String | debugString()
Returns a debug-friendly String representation of an Atom.
|
int | type() |
String | typeName()
returns the name of the type of this term, as "Atom"
|
Parameters: name the Atom's name (unquoted)
Deprecated:
Returns a debug-friendly String representation of an Atom.Returns: a debug-friendly String representation of an Atom
Returns: the name of the type of this term, as "Atom"