public class LiteralImpl extends StaticOperandImpl
Constructor and Description |
---|
LiteralImpl(PropertyValue value) |
Modifier and Type | Method and Description |
---|---|
protected PropertyValue |
convertValueToType(PropertyValue v,
PropertyValue targetType) |
@NotNull org.apache.jackrabbit.oak.query.ast.AstElement |
copyOf() |
PropertyValue |
currentValue() |
boolean |
equals(java.lang.Object that) |
PropertyValue |
getLiteralValue() |
protected java.lang.String |
getLocalPath(java.lang.String path)
Calculate the session local path (the path excluding the workspace name)
if possible.
|
int |
hashCode() |
protected java.lang.String |
normalizePath(java.lang.String path)
Validate and normalize the path.
|
protected java.lang.String |
normalizePropertyName(java.lang.String propertyName)
Normalize the property name (including namespace remapping).
|
protected java.lang.String |
protect(java.lang.Object expression) |
protected java.lang.String |
quote(java.lang.String pathOrName) |
protected java.lang.String |
quoteJson(java.lang.String string) |
void |
setQuery(QueryImpl query) |
java.lang.String |
toString() |
protected QueryImpl query
public LiteralImpl(PropertyValue value)
public PropertyValue getLiteralValue()
public PropertyValue currentValue()
currentValue
in class StaticOperandImpl
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object that)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
protected java.lang.String protect(java.lang.Object expression)
protected java.lang.String quote(java.lang.String pathOrName)
protected java.lang.String quoteJson(java.lang.String string)
public void setQuery(QueryImpl query)
protected java.lang.String normalizePropertyName(java.lang.String propertyName)
propertyName
- the property name to normalizeprotected java.lang.String normalizePath(java.lang.String path)
path
- the path to validateprotected PropertyValue convertValueToType(PropertyValue v, PropertyValue targetType)
protected java.lang.String getLocalPath(java.lang.String path)
path
- the absolute path@NotNull public @NotNull org.apache.jackrabbit.oak.query.ast.AstElement copyOf()
AstElement
returns same reference
to this
.Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.