Package com.atlassian.query.operand
Class FunctionOperand
java.lang.Object
com.atlassian.query.operand.FunctionOperand
- All Implemented Interfaces:
Operand
,Serializable
Represents a function in the query tree.
- Since:
- v4.0
- See Also:
-
Constructor Summary
ConstructorDescriptionFunctionOperand
(String name) FunctionOperand
(String name, String... args) FunctionOperand
(String name, Collection<String> args) -
Method Summary
Modifier and TypeMethodDescription<R> R
accept
(OperandVisitor<R> visitor) Allows us to perform operations over the operand based on the passed in visitor.boolean
getArgs()
Renders the function call with its name and arguments for display in the UI.getName()
The name that represents this Operand.int
hashCode()
-
Constructor Details
-
FunctionOperand
-
FunctionOperand
-
FunctionOperand
-
-
Method Details
-
getName
Description copied from interface:Operand
The name that represents this Operand. -
getDisplayString
Renders the function call with its name and arguments for display in the UI.- Specified by:
getDisplayString
in interfaceOperand
- Returns:
- something that looks like this: shear(sheep, goats).
-
accept
Description copied from interface:Operand
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. -
getArgs
-
equals
-
hashCode
public int hashCode()
-