Class OutputVariable

  • All Implemented Interfaces:
    Command

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

      • OutputVariable

        public OutputVariable​(java.lang.String variableName)
    • Method Detail

      • 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 java.lang.String getVariableName()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object