/** * INTERNAL * This method calculates the return type of the SUM operation. */ protected Class calculateReturnType(GenerationContext context) { Class returnType = null; if (getLeft().isDotNode()){ DotNode arg = (DotNode)getLeft(); Class fieldType = arg.getTypeOfDirectToField(context); TypeHelper helper = context.getParseTreeContext().getTypeHelper(); returnType = (Class)calculateReturnType(fieldType, helper); } return returnType; }
/** * INTERNAL * This method calculates the return type of the SUM operation. */ protected Class calculateReturnType(GenerationContext context) { Class returnType = null; if (getLeft().isDotNode()){ DotNode arg = (DotNode)getLeft(); Class fieldType = arg.getTypeOfDirectToField(context); TypeHelper helper = context.getParseTreeContext().getTypeHelper(); returnType = (Class)calculateReturnType(fieldType, helper); } return returnType; }
/** * INTERNAL * This method calculates the return type of the SUM operation. */ protected Class calculateReturnType(GenerationContext context) { Class returnType = null; if (getLeft().isDotNode()){ DotNode arg = (DotNode)getLeft(); Class fieldType = arg.getTypeOfDirectToField(context); TypeHelper helper = context.getParseTreeContext().getTypeHelper(); returnType = (Class)calculateReturnType(fieldType, helper); } return returnType; }