Class EntityLiteral
java.lang.Object
com.blazebit.persistence.parser.expression.AbstractExpression
com.blazebit.persistence.parser.expression.EntityLiteral
- All Implemented Interfaces:
Expression,LiteralExpression<Class<?>>
public class EntityLiteral extends AbstractExpression implements LiteralExpression<Class<?>>
- 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 -
Constructor Summary
Constructors Constructor Description EntityLiteral(Class<?> value, String originalExpression) -
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.Expressioncopy(ExpressionCopyContext copyContext)booleanequals(Object o)StringgetOriginalExpression()Class<?>getValue()inthashCode()StringtoString()Returns the trimmed original string representation of the expression.
-
Constructor Details
-
Method Details
-
getValue
- Specified by:
getValuein interfaceLiteralExpression<Class<?>>
-
getOriginalExpression
-
copy
- Specified by:
copyin interfaceExpression- Specified by:
copyin classAbstractExpression- Returns:
-
accept
Description copied from interface:ExpressionThe expression tree is traversed in pre-order.- Specified by:
acceptin interfaceExpression
-
accept
- Specified by:
acceptin interfaceExpression
-
equals
-
hashCode
public int hashCode() -
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
-