diff options
author | Jose <jose@zeroc.com> | 2014-04-18 21:44:03 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2014-04-18 21:44:03 +0200 |
commit | 8324b6221eaf415dd482453a4bbca872e5a8e1af (patch) | |
tree | b9a7a8783c81d0fcac2c2545bfdb42d8dc53b569 /cpp/src/slice2java/Gen.h | |
parent | Fixed (ICE-4858) - Eliminate IceDB (diff) | |
download | ice-8324b6221eaf415dd482453a4bbca872e5a8e1af.tar.bz2 ice-8324b6221eaf415dd482453a4bbca872e5a8e1af.tar.xz ice-8324b6221eaf415dd482453a4bbca872e5a8e1af.zip |
Fixed (ICE-5507) - Support Java 8 lambda expression
Diffstat (limited to 'cpp/src/slice2java/Gen.h')
-rw-r--r-- | cpp/src/slice2java/Gen.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/cpp/src/slice2java/Gen.h b/cpp/src/slice2java/Gen.h index 652f17510bd..1325db537a6 100644 --- a/cpp/src/slice2java/Gen.h +++ b/cpp/src/slice2java/Gen.h @@ -29,6 +29,9 @@ protected: enum ParamDir { InParam, OutParam }; + + ParamDeclList getOutParams(const OperationPtr&); + // // Compose the parameter lists for an operation. // @@ -37,6 +40,16 @@ protected: std::vector<std::string> getInOutParams(const OperationPtr&, const std::string&, ParamDir, bool, bool); std::vector<std::string> getParamsAsync(const OperationPtr&, const std::string&, bool, bool); std::vector<std::string> getParamsAsyncCB(const OperationPtr&, const std::string&, bool, bool); + + std::string getAsyncCallbackInterface(const OperationPtr&, const std::string&); + std::string getAsyncCallbackBaseClass(const OperationPtr&, bool); + std::string getLambdaResposeCB(const OperationPtr&, const std::string&); + std::vector<std::string> getParamsAsyncLambda(const OperationPtr&, const std::string&, + bool context = false, bool sentCB = false, + bool optionalMapping = false, + bool inParams = true); + std::vector<std::string> getArgsAsyncLambda(const OperationPtr&, const std::string&, + bool context = false, bool sentCB = false); // // Compose the argument lists for an operation. @@ -346,10 +359,6 @@ private: AsyncVisitor(const std::string&); virtual void visitOperation(const OperationPtr&); - - private: - - static std::string initValue(const TypePtr&); }; }; |