dk.brics.string.stringoperations
Class Contains

java.lang.Object
  extended by dk.brics.string.stringoperations.Operation
      extended by dk.brics.string.stringoperations.BinaryOperation
          extended by dk.brics.string.stringoperations.Contains

public class Contains
extends BinaryOperation

Automaton operation for String.contains(String).

Author:
Asger

Constructor Summary
Contains()
           
 
Method Summary
 CharSet charsetTransfer(CharSet a1, CharSet a2)
          Transfer function for character set analysis.
 int getPriority()
          Returns priority of this operation.
 Automaton op(Automaton a1, Automaton a2)
          Binary operation on automata.
 String toString()
          Returns name of this operation.
 
Methods inherited from class dk.brics.string.stringoperations.BinaryOperation
isAssertion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Contains

public Contains()
Method Detail

charsetTransfer

public CharSet charsetTransfer(CharSet a1,
                               CharSet a2)
Description copied from class: BinaryOperation
Transfer function for character set analysis.

Specified by:
charsetTransfer in class BinaryOperation

getPriority

public int getPriority()
Description copied from class: Operation
Returns priority of this operation. When approximating operation loops in grammars, operations with high priority are considered first.

Specified by:
getPriority in class Operation

op

public Automaton op(Automaton a1,
                    Automaton a2)
Description copied from class: BinaryOperation
Binary operation on automata.

Specified by:
op in class BinaryOperation
Parameters:
a1 - first input automaton, should not be modified
a2 - second input automaton, should not be modified
Returns:
output automaton

toString

public String toString()
Description copied from class: Operation
Returns name of this operation.

Specified by:
toString in class Operation


Copyright © 2003-2009 Anders Møller, Aske Simon Christensen, Asger Feldthaus.