public abstract class AbstractVar extends Term
Constructor and Description |
---|
AbstractVar() |
Modifier and Type | Method and Description |
---|---|
void |
accept(TermVisitor termVisitor)
Accepts a Jpc term visitor.
|
protected void |
basicRead(TermContentHandler contentHandler,
com.google.common.base.Function<Term,Term> termExpander) |
boolean |
equals(Object obj)
A Variable is equal to another if their names are the same and they are not anonymous.
|
abstract String |
getName() |
static List<String> |
getVariableNames(List<AbstractVar> vars) |
boolean |
hasFunctor(Functor functor)
Whether this term has a given functor.
|
abstract boolean |
isAnonymous() |
boolean |
isGround() |
String |
toEscapedString() |
String |
toString()
Returns a Prolog source text representation of this Variable
|
String |
toString(OperatorsContext operatorsContext) |
arg, arity, asList, basicIsList, canUnify, changeVariablesNames, compile, compile, compile, compile, compileAndUnify, compileAndUnifyVars, getArgs, getNamedVariables, getNamedVariablesNames, getNonUnderscoreVariableNames, getNonUnderscoreVariables, getVariableNames, getVariables, hasFunctor, hasFunctor, hasFunctor, hasFunctor, hasVariable, isHilog, isList, listLength, preCompile, prepareForFrame, prepareForFrame, prepareForQuery, prepareForQuery, read, read, replaceVariables, resolveBindings, termEquals, termEquals, termExpansion, toEscapedString, toEscapedString, unify, unifyAndBind, varBindings
public abstract boolean isAnonymous()
public abstract String getName()
public boolean isGround()
public static List<String> getVariableNames(List<AbstractVar> vars)
public boolean hasFunctor(Functor functor)
Term
hasFunctor
in class Term
functor
- the functor of this term.public void accept(TermVisitor termVisitor)
Term
protected void basicRead(TermContentHandler contentHandler, com.google.common.base.Function<Term,Term> termExpander)
public String toString(OperatorsContext operatorsContext)
public String toString()
public String toEscapedString()
toEscapedString
in class Term
Copyright © 2014. All rights reserved.