public class

FunctionOperand

extends Object
implements Operand
java.lang.Object
   ↳ com.atlassian.query.operand.FunctionOperand

Class Overview

Represents a function in the query tree.

Summary

Public Constructors
FunctionOperand(String name)
FunctionOperand(String name, String... args)
FunctionOperand(String name, Collection<String> args)
Public Methods
<R> R accept(OperandVisitor<R> visitor)
Allows us to perform operations over the operand based on the passed in visitor.
boolean equals(Object o)
List<String> getArgs()
String getDisplayString()
Renders the function call with its name and arguments for display in the UI.
String getName()
The name that represents this Operand.
int hashCode()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.query.operand.Operand

Public Constructors

public FunctionOperand (String name)

public FunctionOperand (String name, String... args)

public FunctionOperand (String name, Collection<String> args)

Public Methods

public R accept (OperandVisitor<R> visitor)

Allows us to perform operations over the operand based on the passed in visitor. This method calls the visit method on the visitor with this reference.

Parameters
visitor the visitor to accept.
Returns
  • the result of the visit operation who's type is specified by the incomming visitor.

public boolean equals (Object o)

public List<String> getArgs ()

public String getDisplayString ()

Renders the function call with its name and arguments for display in the UI.

Returns
  • something that looks like this: shear(sheep, goats).

public String getName ()

The name that represents this Operand.

Returns
  • the name of the operand, null if the operand is unnamed. If an operand is unnamed then it likely represents literal values (such as Strings or Longs).

public int hashCode ()