Class ReplacementNode

java.lang.Object
groovy.xml.slurpersupport.ReplacementNode
All Implemented Interfaces:
Buildable, Writable

public abstract class ReplacementNode extends Object implements Buildable, Writable
Helper base class used for lazy updates.
  • Constructor Details

    • ReplacementNode

      public ReplacementNode()
  • Method Details

    • build

      public abstract void build(GroovyObject builder, Map namespaceMap, Map<String,String> namespaceTagHints)
      Emits this lazy replacement through the supplied builder.
      Parameters:
      builder - target builder
      namespaceMap - namespace declarations already in scope
      namespaceTagHints - preferred namespace prefixes
    • build

      public void build(GroovyObject builder)
      Builds this object into the supplied builder.
      Specified by:
      build in interface Buildable
      Parameters:
      builder - the target builder
    • writeTo

      public Writer writeTo(Writer out) throws IOException
      NOP
      Specified by:
      writeTo in interface Writable
      Parameters:
      out - the Writer to which this Writable should output its data.
      Returns:
      the Writer that was passed
      Throws:
      IOException - if an error occurred while outputting data to the writer