org.ujmp.core.stringmatrix.calculation
Class ReplaceRegex

java.lang.Object
  extended by org.ujmp.core.calculation.AbstractCalculation
      extended by org.ujmp.core.stringmatrix.calculation.AbstractStringCalculation
          extended by org.ujmp.core.stringmatrix.calculation.ReplaceRegex
All Implemented Interfaces:
Serializable, Calculation, StringCalculation

public class ReplaceRegex
extends AbstractStringCalculation

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ujmp.core.calculation.Calculation
Calculation.Ret
 
Field Summary
 
Fields inherited from interface org.ujmp.core.calculation.Calculation
ALL, COLUMN, LINK, NEW, NONE, ORIG, ROW
 
Constructor Summary
ReplaceRegex(Matrix matrix, Pattern searchPattern, String replaceString)
           
ReplaceRegex(Matrix matrix, String searchString, String replaceString)
           
 
Method Summary
static Matrix calc(Matrix source, Pattern search, String replacement)
           
static Matrix calc(Matrix source, String searchString, String replacement)
           
 String getString(long... coordinates)
           
 
Methods inherited from class org.ujmp.core.stringmatrix.calculation.AbstractStringCalculation
calcLink, calcNew, calcOrig, getValueType, setString
 
Methods inherited from class org.ujmp.core.calculation.AbstractCalculation
allCoordinates, availableCoordinates, calc, calcMulti, contains, getAnnotation, getDimension, getSize, getSource, getSources, getStorageType, getValueCount, isSparse, setAnnotation, setDimension, setSources
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ujmp.core.calculation.Calculation
allCoordinates, availableCoordinates, calc, calcMulti, contains, getAnnotation, getDimension, getSize, getSource, getSources, getStorageType, getValueCount, isSparse, setAnnotation, setDimension, setSources
 

Constructor Detail

ReplaceRegex

public ReplaceRegex(Matrix matrix,
                    String searchString,
                    String replaceString)

ReplaceRegex

public ReplaceRegex(Matrix matrix,
                    Pattern searchPattern,
                    String replaceString)
Method Detail

getString

public String getString(long... coordinates)
                 throws MatrixException
Throws:
MatrixException

calc

public static Matrix calc(Matrix source,
                          Pattern search,
                          String replacement)
                   throws MatrixException
Throws:
MatrixException

calc

public static Matrix calc(Matrix source,
                          String searchString,
                          String replacement)
                   throws MatrixException
Throws:
MatrixException


Copyright © 2010. All Rights Reserved.