Class SumNode

  • All Implemented Interfaces:
    AliasableNode

    public class SumNode
    extends AggregateNode
    INTERNAL

    Purpose: Model a SUM

    Responsibilities:

    • Apply itself to a query correctly
    • Constructor Detail

      • SumNode

        public SumNode()
    • Method Detail

      • validate

        public void validate​(ParseTreeContext context)
        INTERNAL Validate node and calculate its type.
        Overrides:
        validate in class Node
      • calculateReturnType

        protected java.lang.Class calculateReturnType​(GenerationContext context)
        INTERNAL This method calculates the return type of the SUM operation.
      • calculateReturnType

        protected java.lang.Object calculateReturnType​(java.lang.Object argType,
                                                       TypeHelper helper)
        INTERNAL Helper method to calculate the return type of the SUM operation.
      • getAsString

        public java.lang.String getAsString()
        INTERNAL Get the string representation of this node.
        Overrides:
        getAsString in class Node