com.bc.jexp
Interface Namespace

All Known Subinterfaces:
WritableNamespace
All Known Implementing Classes:
DefaultNamespace, NamespaceImpl

public interface Namespace

Namespaces are used by a Parser in order to resolve to symbol references and function calls.

Version:
$Revision$ $Date$
Author:
Norman Fomferra (norman.fomferra@brockmann-consult.de)

Method Summary
 Function resolveFunction(String name, Term[] args)
          Resolves the given name and argument list in order to find a matching function.
 Symbol resolveSymbol(String name)
          Resolves the given name in order to find a matching symbol.
 

Method Detail

resolveSymbol

Symbol resolveSymbol(String name)
Resolves the given name in order to find a matching symbol.

Parameters:
name - a symbol name
Returns:
the symbol or null if this namespace does not contain a corresponding symbol

resolveFunction

Function resolveFunction(String name,
                         Term[] args)
Resolves the given name and argument list in order to find a matching function.

Parameters:
name - a function name
args - the argument list
Returns:
the function or null if this namespace does not contain a corresponding function


Copyright © 2002-2012 Brockmann Consult GmbH. All Rights Reserved.