Class AstElementFactory
- java.lang.Object
-
- org.apache.jackrabbit.oak.query.ast.AstElementFactory
-
public class AstElementFactory extends Object
A factory for syntax tree elements.
-
-
Constructor Summary
Constructors Constructor Description AstElementFactory()
-
Method Summary
-
-
-
Method Detail
-
and
public AndImpl and(ConstraintImpl constraint1, ConstraintImpl constraint2)
-
ascending
public OrderingImpl ascending(DynamicOperandImpl operand)
-
bindVariable
public BindVariableValueImpl bindVariable(String bindVariableName)
-
childNode
public ChildNodeImpl childNode(String selectorName, String path)
-
childNodeJoinCondition
public ChildNodeJoinConditionImpl childNodeJoinCondition(String childSelectorName, String parentSelectorName)
-
coalesce
public CoalesceImpl coalesce(DynamicOperandImpl operand1, DynamicOperandImpl operand2)
-
column
public ColumnImpl column(String selectorName, String propertyName, String columnName)
-
comparison
public ComparisonImpl comparison(DynamicOperandImpl operand1, Operator operator, StaticOperandImpl operand2)
-
descendantNode
public DescendantNodeImpl descendantNode(String selectorName, String path)
-
descendantNodeJoinCondition
public DescendantNodeJoinConditionImpl descendantNodeJoinCondition(String descendantSelectorName, String ancestorSelectorName)
-
descending
public OrderingImpl descending(DynamicOperandImpl operand)
-
equiJoinCondition
public EquiJoinConditionImpl equiJoinCondition(String selector1Name, String property1Name, String selector2Name, String property2Name)
-
fullTextSearch
public FullTextSearchImpl fullTextSearch(String selectorName, String propertyName, StaticOperandImpl fullTextSearchExpression)
-
fullTextSearchScore
public FullTextSearchScoreImpl fullTextSearchScore(String selectorName)
-
join
public JoinImpl join(SourceImpl left, SourceImpl right, JoinType joinType, JoinConditionImpl joinCondition)
-
length
public LengthImpl length(DynamicOperandImpl operand)
-
literal
public LiteralImpl literal(PropertyValue literalValue)
-
lowerCase
public LowerCaseImpl lowerCase(DynamicOperandImpl operand)
-
first
public FirstImpl first(DynamicOperandImpl operand)
-
nodeLocalName
public NodeLocalNameImpl nodeLocalName(String selectorName)
-
nodeName
public NodeNameImpl nodeName(String selectorName)
-
not
public NotImpl not(ConstraintImpl constraint)
-
or
public OrImpl or(ConstraintImpl constraint1, ConstraintImpl constraint2)
-
propertyExistence
public PropertyExistenceImpl propertyExistence(String selectorName, String propertyName)
-
propertyInexistence
public PropertyInexistenceImpl propertyInexistence(String selectorName, String propertyName)
-
propertyValue
public PropertyValueImpl propertyValue(String selectorName, String propertyName)
-
propertyValue
public PropertyValueImpl propertyValue(String selectorName, String propertyName, String propertyType)
-
sameNode
public SameNodeImpl sameNode(String selectorName, String path)
-
sameNodeJoinCondition
public SameNodeJoinConditionImpl sameNodeJoinCondition(String selector1Name, String selector2Name, String selector2Path)
-
selector
public SelectorImpl selector(NodeTypeInfo nodeTypeInfo, String selectorName)
-
upperCase
public UpperCaseImpl upperCase(DynamicOperandImpl operand)
-
in
public ConstraintImpl in(DynamicOperandImpl left, ArrayList<StaticOperandImpl> list)
-
nativeFunction
public NativeFunctionImpl nativeFunction(String selectorName, String language, StaticOperandImpl expression)
-
similar
public SimilarImpl similar(String selectorName, String propertyName, StaticOperandImpl path)
-
spellcheck
public ConstraintImpl spellcheck(String selectorName, StaticOperandImpl expression)
-
suggest
public ConstraintImpl suggest(String selectorName, StaticOperandImpl expression)
-
copyElementAndCheckReference
@NotNull public static @NotNull org.apache.jackrabbit.oak.query.ast.AstElement copyElementAndCheckReference(@NotNull @NotNull org.apache.jackrabbit.oak.query.ast.AstElement e)as the
AstElement.copyOf()can returnthisis the cloning is not implemented by the subclass, this method add some spice around it by checking for this case and tracking a DEBUG message in the logs.- Parameters:
e- the element to be cloned. Cannot be null.- Returns:
- same as
AstElement.copyOf()
-
-