## jpl
Class Atom

    java.lang.Object
      jpl.Term
          jpl.Compound
              jpl.Atom

public class Atom
extends Compound

Atom is a specialised Compound with zero arguments, representing a Prolog atom with the same name. An Atom is constructed with a String parameter (its name, unquoted), which cannot thereafter be changed.

    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) 2004 Paul Singleton

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.

Version:
  $Revision: 1.2 $
See Also:
  `Term`, `Compound`

Constructor Summary
`Atom(java.lang.String name)`

Method Summary
`java.lang.String` `debugString()` Deprecated.
`int` `type()` returns the type of this term, as one of jpl.fli.Prolog.COMPOUND, .ATOM, .VARIABLE, .INTEGER, .FLOAT etc

Methods inherited from class jpl.Compound
`arg, arg0, args, arity, equals, hasFunctor, name, toString, typeName`

Methods inherited from class jpl.Term
`debugString, doubleValue, floatValue, hasFunctor, hasFunctor, intValue, isAtom, isCompound, isFloat, isInteger, isJBoolean, isJRef, isJVoid, isVariable, listLength, longValue, putParams, putParams, toString, toTermArray`

Methods inherited from class java.lang.Object
`getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### Atom

    public Atom(java.lang.String name)

Parameters:
  `name` - the Atom's name (unquoted)

Method Detail

### type

    public final int type()

  Description copied from class: `Term`
  returns the type of this term, as one of jpl.fli.Prolog.COMPOUND, .ATOM, .VARIABLE, .INTEGER, .FLOAT etc

  Overrides:
    `type` in class `Compound`

### debugString

    public java.lang.String debugString()

  Deprecated.

  Returns a debug-friendly String representation of an Atom.

  Overrides:
    `debugString` in class `Compound`
  Returns:
    a debug-friendly String representation of an Atom