コード例 #1
0
  @Override
  public CodeSnippet process(HttpVariable httpVariable) {
    HttpAnnotation annotation = httpVariable.getHttpAnnotation().get();
    String httpNameArgument = '"' + annotation.getName() + '"';
    String variableNameArgument = httpVariable.getName();
    String dateFormatArgument =
        parseOptionalStringArgument(httpVariable.getDateFormat(), "defaultDateFormat");

    return process(httpVariable, httpNameArgument, variableNameArgument, dateFormatArgument);
  }
コード例 #2
0
 @Override
 public boolean canProcess(HttpVariable variable) {
   return variable.getHttpAnnotation().get().getParameterType() == getSupportedParameterType();
 }