/**
   * the constructor.
   *
   * @param element
   * @category constructor
   */
  public ClassGenerateHelper(Element element) {
    classElement = element;

    g.setPackageName(getPackageName(element));
    g.setTarget(getSimpleName(element));

    TypeElement superclass = AptUtil.getSuperClassElement(element);
    if (superclass.getAnnotation(JsonModel.class) != null) {
      g.setTargetBase(AptUtil.getFullQualifiedName(superclass));
      g.setExistsBase(true);
    }

    g.setPostfix(postfix);
    g.setTreatUnknownKeyAsError(getTreatUnknownKeyAsError(element));
  }
 /**
  * {@link JsonKey} が付加されているフィールドの解釈.
  *
  * @param element
  * @author vvakame
  */
 public void addElement(Element element) {
   JsonElement jsonElement = element.asType().accept(new ValueExtractVisitor(), element);
   g.addJsonElement(jsonElement);
 }