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, varBindings
public 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)
Term
hasFunctor
in class Term
functor
- the functor of this term.public boolean isBoolean()
protected boolean basicIsList()
basicIsList
in class Term
public ListTerm asList()
Term
public boolean isGround()
public void accept(TermVisitor termVisitor)
Term
protected void basicRead(TermContentHandler contentHandler, com.google.common.base.Function<Term,Term> termExpander)
public String toEscapedString()
toEscapedString
in class Term
public String toString(OperatorsContext operatorsContext)
public Term preCompile(Environment env)
preCompile
in class Term
public Term prepareForQuery(Environment env)
prepareForQuery
in class Term
public Term prepareForFrame(Environment env)
prepareForFrame
in class Term
Copyright © 2014. All rights reserved.