com.hp.hpl.jena.graph.query
Interface PatternCompiler

All Known Implementing Classes:
PatternStageCompiler

public interface PatternCompiler

A PatternCompiler is some class that knows how to handle fixed Node values, binding and bound occurences of variables, and wildcards.

Author:
kers

Method Summary
 Element any()
          Method called to deliver a compiled element from a wildcard ANY.
 Element bind(Node n, int index)
          Method called to deliver a compiled element from a binding occurance of a variable Node allocated at a given index position.
 Element bound(Node n, int index)
          Method called to deliver a compiled element from a bound occurance of a variable Node allocated at a given index position.
 Element fixed(Node value)
          Method called to deliver a compiled Element constructed from a constant Node.
 

Method Detail

fixed

public Element fixed(Node value)
Method called to deliver a compiled Element constructed from a constant Node.


bound

public Element bound(Node n,
                     int index)
Method called to deliver a compiled element from a bound occurance of a variable Node allocated at a given index position.


bind

public Element bind(Node n,
                    int index)
Method called to deliver a compiled element from a binding occurance of a variable Node allocated at a given index position.


any

public Element any()
Method called to deliver a compiled element from a wildcard ANY.



Copyright © 2000-2003 Hewlett-Packard. All Rights Reserved.