com.svincent.moksa
Class VariableCollector
java.lang.Object
|
+--com.svincent.moksa.WamObject
|
+--com.svincent.moksa.PrologTermVisitor
|
+--com.svincent.moksa.VariableCollector
- public class VariableCollector
- extends PrologTermVisitor
Collects all the variables out of an PrologTerm compoundTerm.
For debugging purposes. XXX Maybe move off to subpackage.
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Inst
public static final VariableCollector Inst
VariableCollector
public VariableCollector()
getVariables
public static java.util.Collection getVariables(PrologTerm a)
- Primary interface method.
getVariableMap
public static java.util.Map getVariableMap(PrologTerm a)
visitVariable
public java.lang.Object visitVariable(Variable v,
java.lang.Object _l)
- Overrides:
- visitVariable in class PrologTermVisitor
visitCompoundTerm
public java.lang.Object visitCompoundTerm(CompoundTerm v,
java.lang.Object parm)
- Overrides:
- visitCompoundTerm in class PrologTermVisitor
This is documentation for Moksa Prolog, which can be found at http://www.svincent.com/moksa/
Copyright © 1999 Shawn P. Vincent.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.