TV-Browser 2.7.5 API

tvbrowser.core.search.booleansearch
Class And

java.lang.Object
  extended by tvbrowser.core.search.booleansearch.And
All Implemented Interfaces:
Block

public class And
extends Object
implements Block

Implementiert logische und-Verknüpfung zwischen 2 Blocks

Author:
Gilson Laurent, pumpkin@gmx.de

Field Summary
(package private)  Block block1
           
(package private)  Block block2
           
 
Constructor Summary
And(Block b1, Block b2)
           
 
Method Summary
 Block finish()
          Die Optimierung testet ob: - einer der Unterblocks auch ein AND ist.
 boolean test(String s)
          Testet einen String.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

block1

Block block1

block2

Block block2
Constructor Detail

And

public And(Block b1,
           Block b2)
Method Detail

test

public boolean test(String s)
Description copied from interface: Block
Testet einen String. Gibt true zurück wenn die Bedinung erfüllt ist

Specified by:
test in interface Block

finish

public Block finish()
Die Optimierung testet ob: - einer der Unterblocks auch ein AND ist. Dann wird das AND oder ein multiAnd ersetzt - Ruft die Optimierung der Unterblock auf - Wenn ein Block der Klasse matcher dabei ist wird dieser zuerst getestet - Wenn beide Blocks StringCompare implementieren wird der längere nach vorne sortiert.

Specified by:
finish in interface Block

toString

public String toString()
Overrides:
toString in class Object

TV-Browser 2.7.5 API

TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)