Class AttributeNode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable
    Direct Known Subclasses:
    AttributeMapLookupNode

    public class AttributeNode
    extends FunctionNode
    This function is an instruction to retrieve the value of a named attribute.
    Author:
    baldersheim, Simon Thoresen Hult
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int classId  
    • Constructor Summary

      Constructors 
      Constructor Description
      AttributeNode()
      Constructs an empty result node.
      AttributeNode​(java.lang.String attribute)
      Constructs an instance of this class with given attribute name.
    • Field Detail

      • classId

        public static final int classId
    • Constructor Detail

      • AttributeNode

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

        public AttributeNode​(java.lang.String attribute)
        Constructs an instance of this class with given attribute name.
        Parameters:
        attribute - The attribute to retrieve.
    • Method Detail

      • getAttributeName

        public java.lang.String getAttributeName()
        Returns the name of the attribute whose value this function is to retrieve.
        Returns:
        The attribute name.
      • setAttributeName

        public AttributeNode setAttributeName​(java.lang.String attribute)
        Sets the name of the attribute whose value this function is to retrieve.
        Parameters:
        attribute - The attribute to retrieve.
        Returns:
        This, to allow chaining.
      • onSerialize

        protected void onSerialize​(com.yahoo.vespa.objects.Serializer buf)
        Overrides:
        onSerialize in class FunctionNode
      • onDeserialize

        protected void onDeserialize​(com.yahoo.vespa.objects.Deserializer buf)
        Overrides:
        onDeserialize in class FunctionNode
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.yahoo.vespa.objects.Identifiable
      • visitMembers

        public void visitMembers​(com.yahoo.vespa.objects.ObjectVisitor visitor)
        Overrides:
        visitMembers in class FunctionNode