| 
 | GNU Prolog for Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgnu.prolog.term.Term
gnu.prolog.term.VariableTerm
public class VariableTerm
Represents Prolog variables such as X or A.
Term.dereference(), 
Serialized Form| Field Summary | |
|---|---|
|  String | nameName of the variable when it was declared Used for display purposes | 
|  Term | valuevalue of variable term | 
| Fields inherited from class gnu.prolog.term.Term | 
|---|
| ATOM, COMPOUND, FLOAT, INTEGER, JAVA_OBJECT, UNKNOWN, VARIABLE | 
| Constructor Summary | |
|---|---|
| VariableTerm()create new unnamed variable term | |
| VariableTerm(String name)Create a new named variable term | |
| Method Summary | |
|---|---|
|  Term | clone(TermCloneContext context)clone the object using clone context | 
|  Term | dereference()dereference term. | 
|  int | getTermType()get type of term | 
| Methods inherited from class gnu.prolog.term.Term | 
|---|
| clone, toString | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public Term value
public String name
| Constructor Detail | 
|---|
public VariableTerm()
public VariableTerm(String name)
name - the name of the term.name| Method Detail | 
|---|
public Term clone(TermCloneContext context)
clone in class Termcontext - clone context
public Term dereference()
dereference in class Termpublic int getTermType()
getTermType in class Term| 
 | GNU Prolog for Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||