java.lang.Object
org.apache.sling.scripting.sightly.compiler.commands.OutputVariable
All Implemented Interfaces:
Command

public final class OutputVariable extends Object implements Command
This Command renders a variable's value.
  • Constructor Details

    • OutputVariable

      public OutputVariable(String variableName)
  • Method Details

    • accept

      public void accept(CommandVisitor visitor)
      Description copied from interface: Command
      Accept a visitor.
      Specified by:
      accept in interface Command
      Parameters:
      visitor - the visitor that will process this command
    • getVariableName

      public String getVariableName()
    • toString

      public String toString()
      Overrides:
      toString in class Object