dk.brics.string.stringoperations
Class SetCharAt2

java.lang.Object
  extended by dk.brics.string.stringoperations.Operation
      extended by dk.brics.string.stringoperations.UnaryOperation
          extended by dk.brics.string.stringoperations.SetCharAt2

public class SetCharAt2
extends UnaryOperation

Automaton operation for StringBuffer.setCharAt(int,char) where the character is unknown.


Constructor Summary
SetCharAt2()
          Automaton operation for StringBuffer.setCharAt(int,char) where the character is unknown.
 
Method Summary
 CharSet charsetTransfer(CharSet a)
          Transfer function for character set analysis.
 boolean equals(Object obj)
           
 int getPriority()
          Returns priority of this operation.
 int hashCode()
           
 Automaton op(Automaton a)
          Automaton operation.
 String toString()
          Returns name of this operation.
 
Methods inherited from class dk.brics.string.stringoperations.UnaryOperation
isAssertion
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SetCharAt2

public SetCharAt2()
Automaton operation for StringBuffer.setCharAt(int,char) where the character is unknown.

Method Detail

charsetTransfer

public CharSet charsetTransfer(CharSet a)
Description copied from class: UnaryOperation
Transfer function for character set analysis.

Specified by:
charsetTransfer in class UnaryOperation

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

op

public Automaton op(Automaton a)
Automaton operation. Constructs new automaton from two copies, a1 and a2, of a. The initial state is the one from a1, the accept states are those in a2. Extra Sigma transitions are added from each state q in a1 to the the states in a2 that are reachable in exactly one step from the one that corresponds to q.

Specified by:
op in class UnaryOperation
Parameters:
a - input automaton
Returns:
resulting 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.