Class ConstructorNode

  • All Implemented Interfaces:
    AliasableNode

    public class ConstructorNode
    extends Node
    implements AliasableNode
    INTERNAL

    Purpose: Represent a constructor node (NEW)

    Responsibilities:

    • Generate the correct expression for a constructor
    • Field Detail

      • constructorItems

        public List constructorItems
        The list of constructor call argument nodes
    • Constructor Detail

      • ConstructorNode

        public ConstructorNode​(String className)
        Return a new ConstructorNode
    • Method Detail

      • validate

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

        public boolean isConstructorNode()
        INTERNAL Is this node a ConstructorNode
        Overrides:
        isConstructorNode in class Node
      • addConstructorItem

        public void addConstructorItem​(Object theNode)
        INTERNAL Add an Order By Item to this node
      • setConstructorItems

        public void setConstructorItems​(List items)
        INTERNAL Set the list of constructor items of this node.
      • getConstructorItems

        public List getConstructorItems()
        INTERNAL Get the list of constructor items of this node.
      • getAsString

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

        public boolean isAliasableNode()
        Overrides:
        isAliasableNode in class Node