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
ConstructorsConstructorDescriptionFunctionOperand(String name) FunctionOperand(String name, String... args) FunctionOperand(String name, Collection<String> args) -
Method Summary
Modifier and TypeMethodDescription<R> Raccept(OperandVisitor<R> visitor) Allows us to perform operations over the operand based on the passed in visitor.booleangetArgs()Renders the function call with its name and arguments for display in the UI.getName()The name that represents this Operand.inthashCode()
-
Constructor Details
-
FunctionOperand
-
FunctionOperand
-
FunctionOperand
-
-
Method Details
-
getName
Description copied from interface:OperandThe name that represents this Operand. -
getDisplayString
Renders the function call with its name and arguments for display in the UI.- Specified by:
getDisplayStringin interfaceOperand- Returns:
- something that looks like this: shear(sheep, goats).
-
accept
Description copied from interface:OperandAllows 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()
-