Class ArrayAtLookupNode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class ArrayAtLookupNode
    extends UnaryFunctionNode
    This function is an instruction to retrieve an index a named array attribute.
    Author:
    arnej27959
    See Also:
    Serialized Form
    • Field Detail

      • classId

        public static final int classId
    • Constructor Detail

      • ArrayAtLookupNode

        public ArrayAtLookupNode()
        Constructs an empty result node. NOTE: This instance is broken until non-optional member data is set.
      • ArrayAtLookupNode

        public ArrayAtLookupNode​(java.lang.String attribute,
                                 ExpressionNode arg)
        Constructs an instance of this class with given attribute name and index argument.
        Parameters:
        attribute - The attribute to retrieve.
        arg - Expression evaluating to the index argument.
    • Method Detail

      • getAttributeName

        public java.lang.String getAttributeName()
        Returns the name of the attribute whose value we do index in.
        Returns:
        The attribute name.
      • setAttributeName

        public ArrayAtLookupNode setAttributeName​(java.lang.String attribute)
        Sets the name of the attribute whose value we do index in.
        Parameters:
        attribute - The attribute to retrieve.
        Returns:
        This, to allow chaining.