Class ExpressionNode

    • Field Detail

      • classId

        public static final int classId
    • Constructor Detail

      • ExpressionNode

        public ExpressionNode()
    • Method Detail

      • prepare

        public void prepare()
        Prepare expression for execution.
      • execute

        public boolean execute()
        Execute expression.
        Returns:
        true if successful, false if not.
      • executeIterative

        protected void executeIterative​(ResultNode arg,
                                        ResultNode result)
        Give an argument to this expression and store the result.
        Parameters:
        arg - Argument to use for expression.
        result - Node to contain the result.
      • onExecute

        protected boolean onExecute()
      • onPrepare

        protected void onPrepare()
      • onGetClassId

        protected int onGetClassId()
        Overrides:
        onGetClassId in class com.yahoo.vespa.objects.Identifiable
      • onSerialize

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

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

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

        public ExpressionNode clone()
        Overrides:
        clone in class com.yahoo.vespa.objects.Identifiable
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class com.yahoo.vespa.objects.Identifiable
      • equalsExpression

        protected abstract boolean equalsExpression​(ExpressionNode obj)
      • getResult

        public abstract ResultNode getResult()
        Get the result of this expression.
        Returns:
        the result as a ResultNode.