Class BooleanLiteral
java.lang.Object
com.blazebit.persistence.parser.expression.AbstractExpression
com.blazebit.persistence.parser.predicate.AbstractPredicate
com.blazebit.persistence.parser.predicate.BooleanLiteral
- All Implemented Interfaces:
Expression,Negatable,Predicate
public class BooleanLiteral extends AbstractPredicate
- Since:
- 1.2.0
- Author:
- Moritz Becker
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.blazebit.persistence.parser.expression.Expression
Expression.ResultVisitor<T>, Expression.Visitor -
Field Summary
-
Constructor Summary
Constructors Constructor Description BooleanLiteral(boolean value)BooleanLiteral(boolean value, boolean negated) -
Method Summary
Modifier and Type Method Description <T> Taccept(Expression.ResultVisitor<T> visitor)voidaccept(Expression.Visitor visitor)The expression tree is traversed in pre-order.Predicatecopy(ExpressionCopyContext copyContext)booleanequals(Object o)booleangetValue()inthashCode()StringtoString()Returns the trimmed original string representation of the expression.Methods inherited from class com.blazebit.persistence.parser.predicate.AbstractPredicate
isNegated, negate, setNegated
-
Constructor Details
-
BooleanLiteral
public BooleanLiteral(boolean value) -
BooleanLiteral
public BooleanLiteral(boolean value, boolean negated)
-
-
Method Details
-
getValue
public boolean getValue() -
copy
- Specified by:
copyin interfaceExpression- Specified by:
copyin interfacePredicate- Specified by:
copyin classAbstractPredicate- Returns:
-
accept
Description copied from interface:ExpressionThe expression tree is traversed in pre-order. -
accept
-
equals
- Overrides:
equalsin classAbstractPredicate
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractPredicate
-
toString
Description copied from interface:ExpressionReturns the trimmed original string representation of the expression.- Specified by:
toStringin interfaceExpression- Overrides:
toStringin classAbstractExpression- Returns:
- The string representation of the expression
-