code: public void setPrintDirective(SoyPrintDirective printDirective) {
      checkState(this.printDirective == null, "setPrintDirective has already been called");
      checkArgument(name.identifier().equals(printDirective.getName()));
      this.printDirective = checkNotNull(printDirective);
    }
docs: Sets the print directive.