Examples of conversionExpr()


Examples of com.habitsoft.kiyaa.rebind.typeinfo.ExpressionInfo.conversionExpr()

          } else if (pathAccessors != null) {
            if(!pathAccessors.hasSynchronousGetter()) {
              logger.log(TreeLogger.ERROR, "Async/write-only values when calling a setter with multiple parameters is not supported currently.", null);
              throw new UnableToCompleteException();
            }
            paramString = pathAccessors.conversionExpr(JTypeWrapper.wrap(parameter.getType()));
            if(paramString == null) {
              logger.log(TreeLogger.ERROR, "Cannot convert "+pathAccessors.getType()+" '"+path+"' to "+parameter.getType()+" for call to "+method, null);
              throw new UnableToCompleteException();
            }
          // If we get here, there's no "${...}" or "#{...}" so it's a constant value / string or an action
View Full Code Here

Examples of com.habitsoft.kiyaa.rebind.typeinfo.ExpressionInfo.conversionExpr()

                        ExpressionInfo argAccessors = findAccessors(arg, true, false);
                        if (argAccessors == null) {
                            logger.log(TreeLogger.ERROR, "Couldn't evaluate '" + arg + "' as argument to '" + path + "'", null);
                            throw new UnableToCompleteException();
                        }
                        args[i] = argAccessors.conversionExpr(actionMethod.getParameterTypes()[i]);
                    }
   
                    String methodCall;
                    if (getter.startsWith("this.")) {
                        methodCall = getter.substring(5) + "." + methodName;
View Full Code Here

Examples of com.habitsoft.kiyaa.rebind.typeinfo.ExpressionInfo.conversionExpr()

        // Is it an asynchronous calculation?
        if(left.hasAsynchronousGetter() || right.hasAsynchronousGetter()) {
          return handleAsyncBinaryOperator(left, oper, right, targetOperandType, resultType);
        }
       
        String convertRight = right.conversionExpr(targetOperandType);
        if(convertRight == null) {
          logger.log(TreeLogger.ERROR, "Can't convert "+right.getType()+" "+right+" to "+targetOperandType, null);
          throw new UnableToCompleteException();
        }
        String convertLeft = left.conversionExpr(targetOperandType);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.