com.svincent.moksa
Class Prologc.PrologRuleCompiler

java.lang.Object
  |
  +--com.svincent.moksa.WamObject
        |
        +--com.svincent.moksa.Prologc.PrologRuleCompiler
Enclosing class:
Prologc

public static class Prologc.PrologRuleCompiler
extends WamObject

A compiler for Prolog rules.


Constructor Summary
Prologc.PrologRuleCompiler(PrologEngine _engine)
           
 
Method Summary
 CompiledRule compileRule(PrologTerm term)
          Compile a term into a Rule.
 CompiledRule loadClass(SmallClass ruleClass)
          Load a CompiledRule given a SmallClass instance.
 SmallClass makeRuleClass(PrologTerm term)
          Make a new SmallClass instance from a Rule.
 SmallClass makeRuleClass(java.lang.String packageName, PrologTerm term)
           
 java.lang.String uniquify(java.lang.String name)
           
 
Methods inherited from class com.svincent.moksa.WamObject
tag, tag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Prologc.PrologRuleCompiler

public Prologc.PrologRuleCompiler(PrologEngine _engine)
Method Detail

uniquify

public java.lang.String uniquify(java.lang.String name)

compileRule

public CompiledRule compileRule(PrologTerm term)
                         throws PrologException
Compile a term into a Rule.

loadClass

public CompiledRule loadClass(SmallClass ruleClass)
                       throws PrologException
Load a CompiledRule given a SmallClass instance.

makeRuleClass

public SmallClass makeRuleClass(PrologTerm term)
                         throws PrologException
Make a new SmallClass instance from a Rule.

makeRuleClass

public SmallClass makeRuleClass(java.lang.String packageName,
                                PrologTerm term)
                         throws PrologException



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.