public abstract class AbstractProgram extends AbstractMap<String,PrologClauses> implements PrologProgram
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Field and Description |
---|---|
protected PrologEngine |
engine |
Modifier | Constructor and Description |
---|---|
protected |
AbstractProgram(PrologEngine engine) |
clear, clone, containsKey, containsValue, get, isEmpty, keySet, put, putAll, remove, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
newClauses
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
forEach, spliterator
protected final PrologEngine engine
protected AbstractProgram(PrologEngine engine)
public Iterator<PrologClauses> iterator()
iterator
in interface Iterable<PrologClauses>
public PrologClauses get(String functor, int arity)
get
in interface PrologProgram
public void add(PrologClause clause)
add
in interface PrologProgram
public void add(PrologProgram program)
add
in interface PrologProgram
public void push(PrologClause clause)
push
in interface PrologProgram
public void removeAll(String key)
public void removeAll(String functor, int arity)
removeAll
in interface PrologProgram
public void markDynamic(String functor, int arity)
markDynamic
in interface PrologProgram
public void unmarkDynamic(String functor, int arity)
unmarkDynamic
in interface PrologProgram
public boolean isDynamic(String functor, int arity)
isDynamic
in interface PrologProgram
public void markMultifile(String functor, int arity)
markMultifile
in interface PrologProgram
public void unmarkMultifile(String functor, int arity)
unmarkMultifile
in interface PrologProgram
public boolean isMultifile(String functor, int arity)
isMultifile
in interface PrologProgram
public void markDiscontiguous(String functor, int arity)
markDiscontiguous
in interface PrologProgram
public void unmarkDiscontiguous(String functor, int arity)
unmarkDiscontiguous
in interface PrologProgram
public boolean isDiscontiguous(String functor, int arity)
isDiscontiguous
in interface PrologProgram
public boolean removeAll(PrologProgram program)
removeAll
in interface PrologProgram
public boolean removeAll(PrologClauses clauses)
removeAll
in interface PrologProgram
public Map<String,PrologClauses> getClauses()
getClauses
in interface PrologProgram
public Set<String> getIndicators()
getIndicators
in interface PrologProgram
public void add(PrologClauses clauses)
add
in interface PrologProgram
public void addAll(PrologProgram program)
addAll
in interface PrologProgram
public boolean retainAll(PrologClauses parents)
retainAll
in interface PrologProgram
public Object[] toArray(PrologClauses[] prologClauses)
toArray
in interface PrologProgram
public Object[] toArray()
toArray
in interface PrologProgram
public Set<Map.Entry<String,PrologClauses>> entrySet()
entrySet
in interface Map<String,PrologClauses>
entrySet
in class AbstractMap<String,PrologClauses>
public int hashCode()
hashCode
in interface Map<String,PrologClauses>
hashCode
in class AbstractMap<String,PrologClauses>
public boolean equals(Object obj)
equals
in interface Map<String,PrologClauses>
equals
in class AbstractMap<String,PrologClauses>
public String toString()
toString
in class AbstractMap<String,PrologClauses>
Copyright © 2020–2024 Prolobjectlink Project. All rights reserved.