Class PathExpression
java.lang.Object
com.blazebit.persistence.parser.expression.AbstractExpression
com.blazebit.persistence.parser.expression.PathExpression
- All Implemented Interfaces:
Expression
public class PathExpression extends AbstractExpression implements Expression
- Since:
- 1.0.0
- Author:
- Christian Beikov, 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 PathExpression()PathExpression(PathElementExpression pathElementExpression)PathExpression(List<PathElementExpression> pathProperties)PathExpression(List<PathElementExpression> pathProperties, boolean isCollectionKeyPath)PathExpression(List<PathElementExpression> pathProperties, PathReference pathReference, boolean usedInCollectionFunction, boolean collectionQualifiedPath) -
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.PathExpressioncopy(ExpressionCopyContext copyContext)booleanequals(Object obj)BaseNodegetBaseNode()List<PathElementExpression>getExpressions()StringgetField()StringgetPath()PathReferencegetPathReference()inthashCode()booleanisCollectionQualifiedPath()booleanisUsedInCollectionFunction()voidsetCollectionQualifiedPath(boolean collectionQualifiedPath)voidsetExpressions(List<PathElementExpression> expressions)voidsetPathReference(PathReference pathReference)voidsetUsedInCollectionFunction(boolean collectionValued)PathExpressionwithoutFirst()
-
Constructor Details
-
PathExpression
public PathExpression() -
PathExpression
-
PathExpression
-
PathExpression
-
PathExpression
public PathExpression(List<PathElementExpression> pathProperties, PathReference pathReference, boolean usedInCollectionFunction, boolean collectionQualifiedPath)
-
-
Method Details
-
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
-
getExpressions
-
setExpressions
-
getPathReference
-
setPathReference
-
getBaseNode
-
getField
-
isUsedInCollectionFunction
public boolean isUsedInCollectionFunction() -
setUsedInCollectionFunction
public void setUsedInCollectionFunction(boolean collectionValued) -
getPath
-
isCollectionQualifiedPath
public boolean isCollectionQualifiedPath() -
setCollectionQualifiedPath
public void setCollectionQualifiedPath(boolean collectionQualifiedPath) -
withoutFirst
-
hashCode
public int hashCode() -
equals
-