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 and Description |
---|
Atom(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
debugString()
Deprecated.
|
java.lang.Object |
jrefToObject() |
int |
type()
returns the type of this term, as jpl.fli.Prolog.COMPOUND
|
java.lang.String |
typeName()
returns the name of the type of this term, as "Atom"
|
arg, arg0, args, arity, equals, hasFunctor, hasFunctor, hasFunctor, isJFalse, isJNull, isJObject, isJRef, isJTrue, isJVoid, name, setArg, toString
debugString, doubleValue, floatValue, intValue, isAtom, isCompound, isFloat, isInteger, isVariable, listLength, longValue, objectToJRef, put, putParams, putParams, putTerm, toString, toTermArray
public Atom(java.lang.String name)
name
- the Atom's name (unquoted)public final int type()
Compound
public java.lang.String typeName()
public java.lang.Object jrefToObject()
jrefToObject
in class Compound
public java.lang.String debugString()
debugString
in class Compound