Package com.user00.thunk

Examples of com.user00.thunk.SerializedLambda


   }

   public <T> SQLQuery<T> where(SQLQuery<T> query, int lambdaThisIndex, Where<T> test, Object emSource)
   {
      MethodAnalysisResults analysis = null;
      SerializedLambda s = SerializedLambda.extractLambda(test);
      if (s != null)
      {
         analysis = runtimeAnalyzer.analyzeLambda(s);
         if (analysis == null) return null;
      }
View Full Code Here


   }

   public <T, U> SQLQuery<U> select(SQLQuery<T> query, int lambdaThisIndex, Select<T, U> select, Object emSource)
   {
      MethodAnalysisResults analysis = null;
      SerializedLambda s = SerializedLambda.extractLambda(select);
      if (s != null)
      {
         analysis = runtimeAnalyzer.analyzeLambda(s);
         if (analysis == null) return null;
      }
View Full Code Here

   }

   MethodAnalysisResults analyzeSimpleAggregateLambda(Object aggregate, Map<String, MethodAnalysisResults> aggregateAnalysisBaseClasses)
   {
      MethodAnalysisResults analysis = null;
      SerializedLambda s = SerializedLambda.extractLambda(aggregate);
      if (s != null)
      {
         analysis = runtimeAnalyzer.analyzeLambda(s);
         if (analysis == null) return null;
      }
View Full Code Here

      return handleSimpleAggregate(query, analysis, lambdaThisIndex, aggregate, "MAX", DoubleSQLReader.class, emSource);
   }

   public <T, U> SQLQuery<Pair<T, U>> join(SQLQuery<T> query, int lambdaThisIndex, Join<T, U> join, Object emSource)
   {
      SerializedLambda s = SerializedLambda.extractLambda(join);
      MethodAnalysisResults analysis;
      if (s != null)
      {
         analysis = runtimeAnalyzer.analyzeLambda(s);
         if (analysis == null) return null;
View Full Code Here

      return null;
   }

   public <T,U> SQLQuery<U> selectAggregates(SQLQuery<T> query, int lambdaThisIndex, DBSet.AggregateSelect<T,U> select, Object emSource)
   {
      SerializedLambda s = SerializedLambda.extractLambda(select);
      MethodAnalysisResults analysis;
      if (s != null)
      {
         analysis = runtimeAnalyzer.analyzeLambda(s);
         if (analysis == null) return null;
View Full Code Here

                                               Select<T, U> select,
                                               int lambdaAggregateThisIndex,
                                               AggregateGroup<U, T, V> aggregate,
                                               Object emSource)
   {
      SerializedLambda sSelect = SerializedLambda.extractLambda(select);
      MethodAnalysisResults analysisForSelect;
      if (sSelect != null)
      {
         analysisForSelect = runtimeAnalyzer.analyzeLambda(sSelect);
         if (analysisForSelect == null) return null;
      }
      else
      {
         String selectClassName = Type.getInternalName(select.getClass());
         if (!selectAnalysis.containsKey(selectClassName)) return null;
         analysisForSelect = selectAnalysis.get(selectClassName);
      }
      if (!doRuntimeCheckForSideEffects(analysisForSelect)) return null;

      SerializedLambda sAggregate = SerializedLambda.extractLambda(aggregate);
      MethodAnalysisResults analysisForGroup;
      if (sAggregate != null)
      {
         analysisForGroup = runtimeAnalyzer.analyzeLambda(sAggregate);
         if (analysisForGroup == null) return null;
View Full Code Here

      return null;
   }

   MethodAnalysisResults analyzeSorterLambda(Object sorterLambda, Map<String, MethodAnalysisResults> preAnalyzedClasses)
   {
      SerializedLambda s = SerializedLambda.extractLambda(sorterLambda);
      MethodAnalysisResults analysis;
      if (s != null)
      {
         analysis = runtimeAnalyzer.analyzeLambda(s);
         if (analysis == null) return null;
View Full Code Here

         params.numCapturedArgs = s.capturedArgs.length;
         return params;
      }
      static ParamsToJava8LambdaDescription fromLambda(Object lambda)
      {
         SerializedLambda s = SerializedLambda.extractLambda(lambda);
         if (s != null)
            return ParamsToJava8LambdaDescription.fromSerializedLambda(s);
         return new ParamsToJava8LambdaDescription();
      }
View Full Code Here

         return lambdaIndex;
      }
      public Object getParameter(Object thisBase) throws QueryGenerationException
      {
         try {
            SerializedLambda s = SerializedLambda.extractLambda(thisBase);
            return s.capturedArgs[index];
         } catch (Exception e) {
            throw new QueryGenerationException("Error reading a field parameter", e);
         }
      }
View Full Code Here

    */
   protected int lambdaIndex;

   public static LambdaInfo analyze(Object lambda, int lambdaIndex, boolean throwExceptionOnFailure)
   {
      SerializedLambda s;
      try {
         s = SerializedLambda.extractLambda(lambda);
         if (s == null)
         {
            if (throwExceptionOnFailure) throw new IllegalArgumentException("Could not extract code from lambda. This error sometimes occurs because your lambda references objects that aren't Serializable.");
View Full Code Here

TOP

Related Classes of com.user00.thunk.SerializedLambda

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.