public final class Atom extends Term
| Modifier and Type | Field and Description |
|---|---|
static Atom |
FAIL_TERM |
static Atom |
NIL |
static Atom |
TRUE_TERM |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(TermVisitor termVisitor)
Accepts a Jpc term visitor.
|
ListTerm |
asList()
Returns a list representation of this term.
|
protected boolean |
basicIsList() |
protected void |
basicRead(TermContentHandler contentHandler,
com.google.common.base.Function<Term,Term> termExpander) |
boolean |
equals(Object obj) |
String |
getName() |
boolean |
hasFunctor(Functor functor)
Whether this term has a given functor.
|
int |
hashCode() |
boolean |
isBoolean() |
boolean |
isGround() |
Term |
preCompile(Environment env) |
Term |
prepareForFrame(Environment env) |
Term |
prepareForQuery(Environment env) |
String |
toEscapedString() |
String |
toString(OperatorsContext operatorsContext) |
arg, arity, canUnify, changeVariablesNames, compile, compile, compile, compile, compileAndUnify, compileAndUnifyVars, getArgs, getNamedVariables, getNamedVariablesNames, getNonUnderscoreVariableNames, getNonUnderscoreVariables, getVariableNames, getVariables, hasFunctor, hasFunctor, hasFunctor, hasFunctor, hasVariable, isHilog, isList, listLength, prepareForFrame, prepareForQuery, read, read, replaceVariables, resolveBindings, termEquals, termEquals, termExpansion, toEscapedString, toEscapedString, toString, unify, unifyAndBind, varBindingspublic static final Atom TRUE_TERM
public static final Atom FAIL_TERM
public static final Atom NIL
public Atom(Boolean bool)
public Atom(String name)
id - the Atom's id (unquoted)public String getName()
public boolean hasFunctor(Functor functor)
TermhasFunctor in class Termfunctor - the functor of this term.public boolean isBoolean()
protected boolean basicIsList()
basicIsList in class Termpublic ListTerm asList()
Termpublic boolean isGround()
public void accept(TermVisitor termVisitor)
Termprotected void basicRead(TermContentHandler contentHandler, com.google.common.base.Function<Term,Term> termExpander)
public String toEscapedString()
toEscapedString in class Termpublic String toString(OperatorsContext operatorsContext)
public Term preCompile(Environment env)
preCompile in class Termpublic Term prepareForQuery(Environment env)
prepareForQuery in class Termpublic Term prepareForFrame(Environment env)
prepareForFrame in class TermCopyright © 2014. All rights reserved.