public class

TerminalClauseImpl

extends Object
implements TerminalClause
java.lang.Object
   ↳ com.atlassian.query.clause.TerminalClauseImpl

Class Overview

Used to represent a terminal node in the query tree.

Summary

Public Constructors
TerminalClauseImpl(String name, Operator operator, String operand)
Creates a terminal clause with the specified name, operator and turns the string value into a SingleValueOperand populated with a string value.
TerminalClauseImpl(String name, Operator operator, long operand)
Creates a terminal clause with the specified name, operator and turns the long value into a SingleValueOperand populated with a long value.
TerminalClauseImpl(String name, Operator operator, Operand operand)
Creates a terminal clause with the specified name, operator and operand.
TerminalClauseImpl(String name, Operator operator, Operand operand, Option<Property> property)
Creates a terminal clause with the specified name, operator, operand and property.
TerminalClauseImpl(String name, String... values)
A convienience constructor that will create a clause with the EQUALS operator if there is only one value in the array and with the IN operator if there are more than one value in the array.
TerminalClauseImpl(String name, Long... values)
A convienience constructor that will create a clause with the EQUALS operator if there is only one value in the array and with the IN operator if there are more than one value in the array.
Public Methods
<R> R accept(ClauseVisitor<R> visitor)
Allows us to perform operations over the clauses based on the passed in visitor.
boolean equals(Object o)
List<Clause> getClauses()
String getName()
The name of the individual clause, this should be unique amongst the implementations otherwise the clauses will be treated as the "same" type of clause.
Operand getOperand()
Operator getOperator()
Option<Property> getProperty()
int hashCode()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.query.clause.Clause
From interface com.atlassian.query.clause.TerminalClause

Public Constructors

public TerminalClauseImpl (String name, Operator operator, String operand)

Creates a terminal clause with the specified name, operator and turns the string value into a SingleValueOperand populated with a string value.

Parameters
name the name for the clause.
operator the operator for the clause.
operand the string value that will be wrapped in a SingleValueOperand.

public TerminalClauseImpl (String name, Operator operator, long operand)

Creates a terminal clause with the specified name, operator and turns the long value into a SingleValueOperand populated with a long value.

Parameters
name the name for the clause.
operator the operator for the clause.
operand the long value that will be wrapped in a SingleValueOperand.

public TerminalClauseImpl (String name, Operator operator, Operand operand)

Creates a terminal clause with the specified name, operator and operand.

Parameters
name the name for the clause.
operator the operator for the clause.
operand the right-hand-side value of the clause.

public TerminalClauseImpl (String name, Operator operator, Operand operand, Option<Property> property)

Creates a terminal clause with the specified name, operator, operand and property.

Parameters
name the name for the clause.
operator the operator for the clause.
operand the right-hand-side value of the clause.
property the name of the property.

public TerminalClauseImpl (String name, String... values)

A convienience constructor that will create a clause with the EQUALS operator if there is only one value in the array and with the IN operator if there are more than one value in the array.

Parameters
name the name for the clause.
values the string values that will be turned into SingleValueOperand's containing a string value.

public TerminalClauseImpl (String name, Long... values)

A convienience constructor that will create a clause with the EQUALS operator if there is only one value in the array and with the IN operator if there are more than one value in the array.

Parameters
name the name for the clause.
values the long values that will be turned into SingleValueOperand's containing a long value.

Public Methods

public R accept (ClauseVisitor<R> visitor)

Allows us to perform operations over the clauses 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 incoming visitor.

public boolean equals (Object o)

public List<Clause> getClauses ()

public String getName ()

The name of the individual clause, this should be unique amongst the implementations otherwise the clauses will be treated as the "same" type of clause.

Returns
  • the name of the individual clause.

public Operand getOperand ()

public Operator getOperator ()

public Option<Property> getProperty ()

public int hashCode ()

public String toString ()