Vinod Kumar S | 79a374b | 2016-04-30 21:09:15 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2016-present Open Networking Laboratory |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package org.onosproject.yangutils.translator.tojava; |
| 18 | |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 19 | import java.io.File; |
Vinod Kumar S | 79a374b | 2016-04-30 21:09:15 +0530 | [diff] [blame] | 20 | import java.io.IOException; |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 21 | import java.util.List; |
| 22 | |
| 23 | import org.onosproject.yangutils.datamodel.YangNode; |
Shankara-Huawei | b756477 | 2016-08-02 18:13:13 +0530 | [diff] [blame] | 24 | import org.onosproject.yangutils.datamodel.javadatamodel.JavaFileInfo; |
Bharat saraswal | 8beac34 | 2016-08-04 02:00:03 +0530 | [diff] [blame] | 25 | import org.onosproject.yangutils.datamodel.javadatamodel.YangPluginConfig; |
Shankara-Huawei | b756477 | 2016-08-02 18:13:13 +0530 | [diff] [blame] | 26 | import org.onosproject.yangutils.translator.tojava.javamodel.YangJavaModuleTranslator; |
| 27 | import org.onosproject.yangutils.translator.tojava.javamodel.YangJavaSubModuleTranslator; |
Bharat saraswal | af413b8 | 2016-07-14 15:18:20 +0530 | [diff] [blame] | 28 | import org.onosproject.yangutils.translator.tojava.utils.JavaExtendsListHolder; |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 29 | |
| 30 | import static org.onosproject.yangutils.translator.tojava.GeneratedTempFileType.RPC_IMPL_MASK; |
| 31 | import static org.onosproject.yangutils.translator.tojava.GeneratedTempFileType.RPC_INTERFACE_MASK; |
Bharat saraswal | af413b8 | 2016-07-14 15:18:20 +0530 | [diff] [blame] | 32 | import static org.onosproject.yangutils.translator.tojava.utils.JavaCodeSnippetGen.addListenersImport; |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 33 | import static org.onosproject.yangutils.translator.tojava.utils.JavaFileGenerator.generateServiceInterfaceFile; |
Bharat saraswal | 8beac34 | 2016-08-04 02:00:03 +0530 | [diff] [blame] | 34 | import static org.onosproject.yangutils.translator.tojava.utils.JavaFileGeneratorUtils.addResolvedAugmentedDataNodeImports; |
Bharat saraswal | af413b8 | 2016-07-14 15:18:20 +0530 | [diff] [blame] | 35 | import static org.onosproject.yangutils.translator.tojava.utils.JavaIdentifierSyntax.createPackage; |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 36 | import static org.onosproject.yangutils.translator.tojava.utils.MethodsGenerator.getRpcManagerMethod; |
| 37 | import static org.onosproject.yangutils.translator.tojava.utils.MethodsGenerator.getRpcServiceMethod; |
Bharat saraswal | 250a747 | 2016-05-12 13:16:57 +0530 | [diff] [blame] | 38 | import static org.onosproject.yangutils.utils.UtilConstants.EMPTY_STRING; |
Bharat saraswal | 4aaab4d | 2016-05-17 14:19:38 +0530 | [diff] [blame] | 39 | import static org.onosproject.yangutils.utils.UtilConstants.LISTENER_SERVICE; |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 40 | import static org.onosproject.yangutils.utils.UtilConstants.NEW_LINE; |
Bharat saraswal | 250a747 | 2016-05-12 13:16:57 +0530 | [diff] [blame] | 41 | import static org.onosproject.yangutils.utils.UtilConstants.RPC_INPUT_VAR_NAME; |
| 42 | import static org.onosproject.yangutils.utils.UtilConstants.VOID; |
Bharat saraswal | af413b8 | 2016-07-14 15:18:20 +0530 | [diff] [blame] | 43 | import static org.onosproject.yangutils.utils.io.impl.FileSystemUtil.closeFile; |
Bharat saraswal | af413b8 | 2016-07-14 15:18:20 +0530 | [diff] [blame] | 44 | import static org.onosproject.yangutils.utils.io.impl.JavaDocGen.generateJavaDocForRpc; |
Bharat saraswal | af413b8 | 2016-07-14 15:18:20 +0530 | [diff] [blame] | 45 | import static org.onosproject.yangutils.utils.io.impl.YangIoUtils.getAbsolutePackagePath; |
Bharat saraswal | af413b8 | 2016-07-14 15:18:20 +0530 | [diff] [blame] | 46 | import static org.onosproject.yangutils.utils.io.impl.YangIoUtils.getCapitalCase; |
Vinod Kumar S | 79a374b | 2016-04-30 21:09:15 +0530 | [diff] [blame] | 47 | |
| 48 | /** |
Bharat saraswal | af413b8 | 2016-07-14 15:18:20 +0530 | [diff] [blame] | 49 | * Represents implementation of java service code fragments temporary implementations. Maintains the temp files required |
| 50 | * specific for service and manager java snippet generation. |
Vinod Kumar S | 79a374b | 2016-04-30 21:09:15 +0530 | [diff] [blame] | 51 | */ |
| 52 | public class TempJavaServiceFragmentFiles |
| 53 | extends TempJavaFragmentFiles { |
| 54 | |
| 55 | /** |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 56 | * File name for rpc method. |
| 57 | */ |
| 58 | private static final String RPC_INTERFACE_FILE_NAME = "Rpc"; |
| 59 | |
| 60 | /** |
| 61 | * File name for rpc implementation method. |
| 62 | */ |
| 63 | private static final String RPC_IMPL_FILE_NAME = "RpcImpl"; |
| 64 | |
| 65 | /** |
Bharat saraswal | 039f59c | 2016-07-14 21:57:13 +0530 | [diff] [blame] | 66 | * File name for generated class file for service suffix. |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 67 | */ |
| 68 | private static final String SERVICE_FILE_NAME_SUFFIX = "Service"; |
| 69 | |
| 70 | /** |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 71 | * Temporary file handle for rpc interface. |
| 72 | */ |
| 73 | private File rpcInterfaceTempFileHandle; |
| 74 | |
| 75 | /** |
| 76 | * Temporary file handle for rpc manager impl. |
| 77 | */ |
| 78 | private File rpcImplTempFileHandle; |
| 79 | |
| 80 | /** |
| 81 | * Java file handle for rpc interface file. |
| 82 | */ |
| 83 | private File serviceInterfaceJavaFileHandle; |
| 84 | |
| 85 | /** |
Bharat saraswal | af413b8 | 2016-07-14 15:18:20 +0530 | [diff] [blame] | 86 | * Creates an instance of temporary java code fragment. |
| 87 | * |
| 88 | * @param javaFileInfo generated file information |
| 89 | * @throws IOException when fails to create new file handle |
| 90 | */ |
Bharat saraswal | 64e7e23 | 2016-07-14 23:33:55 +0530 | [diff] [blame] | 91 | TempJavaServiceFragmentFiles(JavaFileInfo javaFileInfo) |
Bharat saraswal | af413b8 | 2016-07-14 15:18:20 +0530 | [diff] [blame] | 92 | throws IOException { |
| 93 | setJavaExtendsListHolder(new JavaExtendsListHolder()); |
| 94 | setJavaImportData(new JavaImportData()); |
| 95 | setJavaFileInfo(javaFileInfo); |
| 96 | setAbsoluteDirPath(getAbsolutePackagePath(getJavaFileInfo().getBaseCodeGenPath(), |
| 97 | getJavaFileInfo().getPackageFilePath())); |
| 98 | addGeneratedTempFile(RPC_INTERFACE_MASK); |
| 99 | addGeneratedTempFile(RPC_IMPL_MASK); |
| 100 | |
Bharat saraswal | af413b8 | 2016-07-14 15:18:20 +0530 | [diff] [blame] | 101 | setRpcInterfaceTempFileHandle(getTemporaryFileHandle(RPC_INTERFACE_FILE_NAME)); |
| 102 | setRpcImplTempFileHandle(getTemporaryFileHandle(RPC_IMPL_FILE_NAME)); |
Bharat saraswal | af413b8 | 2016-07-14 15:18:20 +0530 | [diff] [blame] | 103 | } |
| 104 | |
| 105 | /** |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 106 | * Returns rpc method's java file handle. |
| 107 | * |
| 108 | * @return java file handle |
| 109 | */ |
| 110 | private File getServiceInterfaceJavaFileHandle() { |
| 111 | return serviceInterfaceJavaFileHandle; |
| 112 | } |
| 113 | |
| 114 | /** |
| 115 | * Sets rpc method's java file handle. |
| 116 | * |
| 117 | * @param serviceInterfaceJavaFileHandle file handle for to rpc method |
| 118 | */ |
| 119 | private void setServiceInterfaceJavaFileHandle(File serviceInterfaceJavaFileHandle) { |
| 120 | this.serviceInterfaceJavaFileHandle = serviceInterfaceJavaFileHandle; |
| 121 | } |
| 122 | |
| 123 | /** |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 124 | * Returns rpc method's temporary file handle. |
| 125 | * |
| 126 | * @return temporary file handle |
| 127 | */ |
| 128 | public File getRpcInterfaceTempFileHandle() { |
| 129 | return rpcInterfaceTempFileHandle; |
| 130 | } |
| 131 | |
| 132 | /** |
| 133 | * Sets rpc method's temporary file handle. |
| 134 | * |
| 135 | * @param rpcInterfaceTempFileHandle file handle for to rpc method |
| 136 | */ |
| 137 | private void setRpcInterfaceTempFileHandle(File rpcInterfaceTempFileHandle) { |
| 138 | this.rpcInterfaceTempFileHandle = rpcInterfaceTempFileHandle; |
| 139 | } |
| 140 | |
| 141 | /** |
| 142 | * Retrieves the manager impl temp file. |
| 143 | * |
| 144 | * @return the manager impl temp file |
| 145 | */ |
| 146 | public File getRpcImplTempFileHandle() { |
| 147 | return rpcImplTempFileHandle; |
| 148 | } |
| 149 | |
| 150 | /** |
| 151 | * Sets the manager impl temp file. |
| 152 | * |
| 153 | * @param rpcImplTempFileHandle the manager impl temp file |
| 154 | */ |
Bharat saraswal | 64e7e23 | 2016-07-14 23:33:55 +0530 | [diff] [blame] | 155 | private void setRpcImplTempFileHandle(File rpcImplTempFileHandle) { |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 156 | this.rpcImplTempFileHandle = rpcImplTempFileHandle; |
| 157 | } |
| 158 | |
| 159 | /** |
Bharat saraswal | 4aaab4d | 2016-05-17 14:19:38 +0530 | [diff] [blame] | 160 | * Constructs java code exit. |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 161 | * |
| 162 | * @param fileType generated file type |
VinodKumarS-Huawei | d81eccb | 2016-06-01 14:30:22 +0530 | [diff] [blame] | 163 | * @param curNode current YANG node |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 164 | * @throws IOException when fails to generate java files |
| 165 | */ |
Bharat saraswal | 250a747 | 2016-05-12 13:16:57 +0530 | [diff] [blame] | 166 | @Override |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 167 | public void generateJavaFile(int fileType, YangNode curNode) |
| 168 | throws IOException { |
Bharat saraswal | 8beac34 | 2016-08-04 02:00:03 +0530 | [diff] [blame] | 169 | |
| 170 | addResolvedAugmentedDataNodeImports(curNode); |
Bharat saraswal | af413b8 | 2016-07-14 15:18:20 +0530 | [diff] [blame] | 171 | List<String> imports = ((JavaCodeGeneratorInfo) curNode).getTempJavaCodeFragmentFiles().getServiceTempFiles() |
| 172 | .getJavaImportData().getImports(); |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 173 | createPackage(curNode); |
Bharat saraswal | 4aaab4d | 2016-05-17 14:19:38 +0530 | [diff] [blame] | 174 | boolean isNotification = false; |
Shankara-Huawei | b756477 | 2016-08-02 18:13:13 +0530 | [diff] [blame] | 175 | if (curNode instanceof YangJavaModuleTranslator) { |
| 176 | if (!((YangJavaModuleTranslator) curNode).getNotificationNodes().isEmpty()) { |
Bharat saraswal | 4aaab4d | 2016-05-17 14:19:38 +0530 | [diff] [blame] | 177 | isNotification = true; |
Bharat saraswal | 4aaab4d | 2016-05-17 14:19:38 +0530 | [diff] [blame] | 178 | } |
Shankara-Huawei | b756477 | 2016-08-02 18:13:13 +0530 | [diff] [blame] | 179 | } else if (curNode instanceof YangJavaSubModuleTranslator) { |
| 180 | if (!((YangJavaSubModuleTranslator) curNode).getNotificationNodes().isEmpty()) { |
Bharat saraswal | 715d3fc | 2016-05-17 19:59:16 +0530 | [diff] [blame] | 181 | isNotification = true; |
| 182 | } |
Bharat saraswal | 4aaab4d | 2016-05-17 14:19:38 +0530 | [diff] [blame] | 183 | } |
| 184 | |
| 185 | if (isNotification) { |
Bharat saraswal | d14cbe8 | 2016-07-14 13:26:18 +0530 | [diff] [blame] | 186 | addListenersImport(curNode, imports, true, LISTENER_SERVICE); |
Bharat saraswal | 4aaab4d | 2016-05-17 14:19:38 +0530 | [diff] [blame] | 187 | } |
Bharat saraswal | 64e7e23 | 2016-07-14 23:33:55 +0530 | [diff] [blame] | 188 | |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 189 | setServiceInterfaceJavaFileHandle(getJavaFileHandle(getJavaClassName(SERVICE_FILE_NAME_SUFFIX))); |
Bharat saraswal | af413b8 | 2016-07-14 15:18:20 +0530 | [diff] [blame] | 190 | generateServiceInterfaceFile(getServiceInterfaceJavaFileHandle(), curNode, imports); |
Bharat saraswal | 64e7e23 | 2016-07-14 23:33:55 +0530 | [diff] [blame] | 191 | |
| 192 | // Close all the file handles. |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 193 | freeTemporaryResources(false); |
| 194 | } |
| 195 | |
| 196 | /** |
| 197 | * Adds rpc string information to applicable temp file. |
| 198 | * |
Bharat saraswal | 64e7e23 | 2016-07-14 23:33:55 +0530 | [diff] [blame] | 199 | * @param javaAttributeInfoOfInput RPCs input node attribute info |
| 200 | * @param javaAttributeInfoOfOutput RPCs output node attribute info |
VinodKumarS-Huawei | d81eccb | 2016-06-01 14:30:22 +0530 | [diff] [blame] | 201 | * @param rpcName name of the rpc function |
| 202 | * @param pluginConfig plugin configurations |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 203 | * @throws IOException IO operation fail |
| 204 | */ |
Bharat saraswal | 250a747 | 2016-05-12 13:16:57 +0530 | [diff] [blame] | 205 | private void addRpcString(JavaAttributeInfo javaAttributeInfoOfInput, |
Bharat saraswal | af413b8 | 2016-07-14 15:18:20 +0530 | [diff] [blame] | 206 | JavaAttributeInfo javaAttributeInfoOfOutput, YangPluginConfig pluginConfig, |
| 207 | String rpcName) |
VinodKumarS-Huawei | d81eccb | 2016-06-01 14:30:22 +0530 | [diff] [blame] | 208 | throws IOException { |
Bharat saraswal | 250a747 | 2016-05-12 13:16:57 +0530 | [diff] [blame] | 209 | String rpcInput = EMPTY_STRING; |
| 210 | String rpcOutput = VOID; |
Bharat saraswal | 5cd9e9c | 2016-05-26 23:48:38 +0530 | [diff] [blame] | 211 | String rpcInputJavaDoc = EMPTY_STRING; |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 212 | if (javaAttributeInfoOfInput != null) { |
janani b | 703cfe4 | 2016-05-17 13:12:22 +0530 | [diff] [blame] | 213 | rpcInput = getCapitalCase(javaAttributeInfoOfInput.getAttributeName()); |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 214 | } |
| 215 | if (javaAttributeInfoOfOutput != null) { |
janani b | 703cfe4 | 2016-05-17 13:12:22 +0530 | [diff] [blame] | 216 | rpcOutput = getCapitalCase(javaAttributeInfoOfOutput.getAttributeName()); |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 217 | } |
Bharat saraswal | 5cd9e9c | 2016-05-26 23:48:38 +0530 | [diff] [blame] | 218 | if (!rpcInput.equals(EMPTY_STRING)) { |
| 219 | rpcInputJavaDoc = RPC_INPUT_VAR_NAME; |
| 220 | } |
Bharat saraswal | 715d3fc | 2016-05-17 19:59:16 +0530 | [diff] [blame] | 221 | appendToFile(getRpcInterfaceTempFileHandle(), |
Bharat saraswal | 5cd9e9c | 2016-05-26 23:48:38 +0530 | [diff] [blame] | 222 | generateJavaDocForRpc(rpcName, rpcInputJavaDoc, rpcOutput, pluginConfig) |
Bharat saraswal | 715d3fc | 2016-05-17 19:59:16 +0530 | [diff] [blame] | 223 | + getRpcServiceMethod(rpcName, rpcInput, rpcOutput, pluginConfig) + NEW_LINE); |
| 224 | appendToFile(getRpcImplTempFileHandle(), |
| 225 | getRpcManagerMethod(rpcName, rpcInput, rpcOutput, pluginConfig) + NEW_LINE); |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 226 | } |
| 227 | |
| 228 | /** |
| 229 | * Adds the JAVA rpc snippet information. |
| 230 | * |
Bharat saraswal | 64e7e23 | 2016-07-14 23:33:55 +0530 | [diff] [blame] | 231 | * @param javaAttributeInfoOfInput RPCs input node attribute info |
| 232 | * @param javaAttributeInfoOfOutput RPCs output node attribute info |
VinodKumarS-Huawei | d81eccb | 2016-06-01 14:30:22 +0530 | [diff] [blame] | 233 | * @param pluginConfig plugin configurations |
| 234 | * @param rpcName name of the rpc function |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 235 | * @throws IOException IO operation fail |
| 236 | */ |
| 237 | public void addJavaSnippetInfoToApplicableTempFiles(JavaAttributeInfo javaAttributeInfoOfInput, |
Bharat saraswal | af413b8 | 2016-07-14 15:18:20 +0530 | [diff] [blame] | 238 | JavaAttributeInfo javaAttributeInfoOfOutput, |
| 239 | YangPluginConfig pluginConfig, String rpcName) |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 240 | throws IOException { |
Bharat saraswal | c2d3be1 | 2016-06-16 00:29:12 +0530 | [diff] [blame] | 241 | addRpcString(javaAttributeInfoOfInput, javaAttributeInfoOfOutput, pluginConfig, rpcName); |
Bharat saraswal | 715d3fc | 2016-05-17 19:59:16 +0530 | [diff] [blame] | 242 | } |
| 243 | |
| 244 | /** |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 245 | * Removes all temporary file handles. |
| 246 | * |
Bharat saraswal | 64e7e23 | 2016-07-14 23:33:55 +0530 | [diff] [blame] | 247 | * @param isErrorOccurred flag to tell translator that error has occurred while file generation |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 248 | * @throws IOException when failed to delete the temporary files |
| 249 | */ |
Bharat saraswal | 250a747 | 2016-05-12 13:16:57 +0530 | [diff] [blame] | 250 | @Override |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 251 | public void freeTemporaryResources(boolean isErrorOccurred) |
| 252 | throws IOException { |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 253 | |
Bharat saraswal | 64e7e23 | 2016-07-14 23:33:55 +0530 | [diff] [blame] | 254 | closeFile(getServiceInterfaceJavaFileHandle(), isErrorOccurred); |
Bharat saraswal | 715d3fc | 2016-05-17 19:59:16 +0530 | [diff] [blame] | 255 | |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 256 | closeFile(getRpcInterfaceTempFileHandle(), true); |
Bharat saraswal | 250a747 | 2016-05-12 13:16:57 +0530 | [diff] [blame] | 257 | closeFile(getRpcImplTempFileHandle(), true); |
| 258 | closeFile(getGetterInterfaceTempFileHandle(), true); |
| 259 | closeFile(getSetterInterfaceTempFileHandle(), true); |
| 260 | closeFile(getSetterImplTempFileHandle(), true); |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 261 | |
| 262 | super.freeTemporaryResources(isErrorOccurred); |
| 263 | |
Vinod Kumar S | 79a374b | 2016-04-30 21:09:15 +0530 | [diff] [blame] | 264 | } |
Vinod Kumar S | 79a374b | 2016-04-30 21:09:15 +0530 | [diff] [blame] | 265 | } |