예제 #1
0
 // ============================================================
 // <T>转换代码内容。</T>
 //
 // @param content 转换环境
 // @param source 代码内容
 // ============================================================
 @Override
 public void convertSourceEnd(FJavaConvertContent content, FTextSource source) {
   if (hasSource()) {
     source.append(')');
     source.append(";");
   }
 }
예제 #2
0
 // ============================================================
 // <T>转换代码内容。</T>
 //
 // @param content 转换环境
 // @param source 代码内容
 // ============================================================
 @Override
 public void convertSourceBegin(FJavaConvertContent content, FTextSource source) {
   source.appendIndent();
   source.append("return ");
   if (!hasSource()) {
     source.append(_value);
     if (RString.contains(_value, '.')) {
       if (!RString.contains(_value, '(')) {
         source.append("()");
       }
     }
     source.append(";");
   } else {
     source.append('(');
   }
 }