Replace.NestedString (Apache Ant API)
Description: declaration: package: org.apache.tools.ant.taskdefs, class: Replace, class: NestedString

Package org.apache.tools.ant.taskdefs

# Class Replace.NestedString

java.lang.Object
org.apache.tools.ant.taskdefs.Replace.NestedString

Enclosing class:
  `Replace`

public class Replace.NestedString extends Object
An inline string to use as the replacement text.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `NestedString()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `addText(String val)`
  The text of the element.
  `String`
  `getText()`
  `void`
  `setExpandProperties(boolean b)`
  Whether properties should be expanded in nested test.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### NestedString

    public NestedString()

- ## Method Details

  - ### setExpandProperties

    public void setExpandProperties(boolean b)
    Whether properties should be expanded in nested test.

    If you use this class via its Java interface the text you add via `addText` has most likely been expanded already so you do not want to set this to true.

    Parameters:
      `b` - boolean
    Since:
      Ant 1.8.0

  - ### addText

    public void addText(String val)
    The text of the element.
    Parameters:
      `val` - the string to add

  - ### getText

    public String getText()
    Returns:
      the text