gnu.prolog.term
Class ChangeableTerm
java.lang.Object
gnu.prolog.term.Term
gnu.prolog.term.VariableTerm
gnu.prolog.term.ChangeableTerm
- All Implemented Interfaces:
- Serializable, Cloneable
- Direct Known Subclasses:
- DoubleQuotesTerm
public abstract class ChangeableTerm
- extends VariableTerm
Terms for which the value varies depending on prolog flags extend this class.
They pick which to use for value on creation and at dereference()
.
- Author:
- Daniel Thomas
- See Also:
- Serialized Form
environment
protected Environment environment
- The Environment we will use to get the flags from.
ChangeableTerm
protected ChangeableTerm(Environment env)
getPrologFlag
protected Term getPrologFlag(AtomTerm term)
dereference
public abstract Term dereference()
- The value may also be altered by this method in child classes.
- Overrides:
dereference
in class VariableTerm
- Returns:
- dereferenced term