Package moise.prolog
Class PrologPredicate
- java.lang.Object
-
- moise.prolog.PrologPredicate
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.List<java.lang.String>
attributes
(package private) java.lang.String
functor
(package private) java.util.List<java.lang.String>
terms
-
Constructor Summary
Constructors Constructor Description PrologPredicate(java.lang.String f)
-
Method Summary
Modifier and Type Method Description void
addAttribute(java.lang.String id, boolean value)
adds a boolean attributevoid
addAttribute(java.lang.String id, java.lang.String value)
adds a string attributevoid
addTerm(java.lang.String t)
java.lang.String
getAsProlog()
java.lang.String
toString()
-
-
-
Method Detail
-
addAttribute
public void addAttribute(java.lang.String id, boolean value)
adds a boolean attribute
-
addAttribute
public void addAttribute(java.lang.String id, java.lang.String value)
adds a string attribute
-
addTerm
public void addTerm(java.lang.String t)
-
getAsProlog
public java.lang.String getAsProlog()
- Specified by:
getAsProlog
in interfaceToProlog
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-