Class StringReplace

  • All Implemented Interfaces:
    it.unive.lisa.program.cfg.CodeMember

    public class StringReplace
    extends it.unive.lisa.program.cfg.NativeCFG
    The native construct representing the replace operation. This construct can be invoked on a string variable x with x.replace(search, replacement), where search is the string to replace and replacement is the string to use as a replacement.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  StringReplace.IMPStringReplace
      An expression modeling the string replace operation.
    • Constructor Summary

      Constructors 
      Constructor Description
      StringReplace​(it.unive.lisa.program.cfg.CodeLocation location, it.unive.lisa.program.ClassUnit stringUnit)
      Builds the construct.
    • Method Summary

      • Methods inherited from class it.unive.lisa.program.cfg.NativeCFG

        getDescriptor, rewrite, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface it.unive.lisa.program.cfg.CodeMember

        validate
    • Constructor Detail

      • StringReplace

        public StringReplace​(it.unive.lisa.program.cfg.CodeLocation location,
                             it.unive.lisa.program.ClassUnit stringUnit)
        Builds the construct.
        Parameters:
        location - the location where this construct is defined
        stringUnit - the unit where this construct is defined