code: public void setNodeType(int nodeType) {
          if (nodeType != Token.COLON
              && nodeType != Token.GET
              && nodeType != Token.SET
              && nodeType != Token.METHOD)
              throw new IllegalArgumentException("invalid node type: "
                                                 + nodeType);
          setType(nodeType);
      }
docs: Sets the node type.  Must be one of
  {@link Token#COLON}, {@link Token#GET}, or {@link Token#SET}.
  @throws IllegalArgumentException if {@code nodeType} is invalid