@Immutable
public final class ComparisonOperator
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ComparisonOperator.MultiValue |
static class |
ComparisonOperator.Nested |
static class |
ComparisonOperator.Type
Defines the different types of arguments.
|
| Modifier and Type | Field and Description |
|---|---|
static ComparisonOperator.Type |
MULTIARY_TYPE |
static ComparisonOperator.Type |
NESTED_TYPE |
static ComparisonOperator.Type |
NULLARY_TYPE |
static ComparisonOperator.Type |
UNARY_TYPE |
| Constructor and Description |
|---|
ComparisonOperator(java.lang.String... symbols) |
ComparisonOperator(java.lang.String[] symbols,
Arity arity)
Deprecated.
in favor of ComparisonOperator(String[], Type)
|
ComparisonOperator(java.lang.String[] symbols,
boolean multiValue)
Deprecated.
in favor of ComparisonOperator(String[], Type)
|
ComparisonOperator(java.lang.String[] symbols,
ComparisonOperator.Type type) |
ComparisonOperator(java.lang.String symbol,
Arity arity)
Deprecated.
in favor of ComparisonOperator(String, Type)
|
ComparisonOperator(java.lang.String symbol,
boolean multiValue)
Deprecated.
in favor of ComparisonOperator(String, Type)
|
ComparisonOperator(java.lang.String symbol,
ComparisonOperator.Type type) |
ComparisonOperator(java.lang.String symbol,
java.lang.String altSymbol,
Arity arity) |
ComparisonOperator(java.lang.String symbol,
java.lang.String altSymbol,
boolean multiValue)
Deprecated.
in favor of ComparisonOperator(String, String, Arity)
|
ComparisonOperator(java.lang.String symbol,
java.lang.String altSymbol,
ComparisonOperator.Type type) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
Arity |
getArity()
Returns the arity of this operator.
|
java.lang.String |
getSymbol()
Returns the primary representation of this operator.
|
java.lang.String[] |
getSymbols()
Returns all representations of this operator.
|
ComparisonOperator.Type |
getType()
Returns the arguments type.
|
int |
hashCode() |
boolean |
isMultiValue()
Deprecated.
use getArity()
|
java.lang.String |
toString() |
public static final ComparisonOperator.Type NESTED_TYPE
public static final ComparisonOperator.Type NULLARY_TYPE
public static final ComparisonOperator.Type UNARY_TYPE
public static final ComparisonOperator.Type MULTIARY_TYPE
public ComparisonOperator(java.lang.String[] symbols,
ComparisonOperator.Type type)
symbols - Textual representation of this operator (e.g. =gt=); the first item
is primary representation, any others are alternatives. Must match
=[a-zA-Z]*=|[><]=?|!=.type - Whether this operator may be used with single, multiple or nested arguments. This is
then validated in NodesFactory.java.lang.IllegalArgumentException - If the symbols is either null, empty,
or contain illegal symbols.public ComparisonOperator(java.lang.String symbol,
ComparisonOperator.Type type)
symbol - Textual representation of this operator (e.g. =gt=); Must match
=[a-zA-Z]*=|[><]=?|!=.type - Whether this operator may be used with single, multiple or nested arguments. This
is then validated in NodesFactory.ComparisonOperator(String[], Type)public ComparisonOperator(java.lang.String symbol,
java.lang.String altSymbol,
ComparisonOperator.Type type)
symbol - Textual representation of this operator (e.g. =gt=); Must match
=[a-zA-Z]*=|[><]=?|!=.altSymbol - Alternative representation for symbol.type - Whether this operator may be used with single, multiple or nested arguments.ComparisonOperator(String[], Type)@Deprecated
public ComparisonOperator(java.lang.String[] symbols,
boolean multiValue)
symbols - Textual representation of this operator (e.g. =gt=); the first item
is primary representation, any others are alternatives. Must match
=[a-zA-Z]*=|[><]=?|!=.multiValue - Whether this operator may be used with multiple arguments. This is then
validated in NodesFactory.java.lang.IllegalArgumentException - If the symbols is either null, empty,
or contain illegal symbols.ComparisonOperator(String[], Arity)@Deprecated
public ComparisonOperator(java.lang.String[] symbols,
Arity arity)
symbols - Textual representation of this operator (e.g. =gt=); the first item is primary
representation, any others are alternatives. Must match =[a-zA-Z]*=|[><]=?|!=.arity - Arity of this operator.java.lang.IllegalArgumentException - If the symbols is either null, empty, or contain illegal
symbols.@Deprecated
public ComparisonOperator(java.lang.String symbol,
boolean multiValue)
symbol - Textual representation of this operator (e.g. =gt=); Must match
=[a-zA-Z]*=|[><]=?|!=.multiValue - Whether this operator may be used with multiple arguments. This is then
validated in NodesFactory.ComparisonOperator(String[], boolean)@Deprecated
public ComparisonOperator(java.lang.String symbol,
Arity arity)
symbol - Textual representation of this operator (e.g. =gt=); Must match
=[a-zA-Z]*=|[><]=?|!=.arity - Arity of this operator.ComparisonOperator(String[], boolean)@Deprecated
public ComparisonOperator(java.lang.String symbol,
java.lang.String altSymbol,
boolean multiValue)
symbol - Textual representation of this operator (e.g. =gt=); Must match
=[a-zA-Z]*=|[><]=?|!=.altSymbol - Alternative representation for symbol.multiValue - Whether this operator may be used with multiple arguments. This is thenComparisonOperator(String[], boolean)public ComparisonOperator(java.lang.String symbol,
java.lang.String altSymbol,
Arity arity)
symbol - Textual representation of this operator (e.g. =gt=); Must match
=[a-zA-Z]*=|[><]=?|!=.altSymbol - Alternative representation for symbol.arity - Arity of this operator.ComparisonOperator(String[], boolean)public ComparisonOperator(java.lang.String... symbols)
symbols - Textual representation of this operator (e.g. =gt=); the first item
is primary representation, any others are alternatives. Must match =[a-zA-Z]*=|[><]=?|!=.ComparisonOperator(String[], Type)public java.lang.String getSymbol()
public java.lang.String[] getSymbols()
@Deprecated public boolean isMultiValue()
public Arity getArity()
public ComparisonOperator.Type getType()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object