Class LiteralImpl
- java.lang.Object
-
- org.apache.jackrabbit.oak.query.ast.StaticOperandImpl
-
- org.apache.jackrabbit.oak.query.ast.LiteralImpl
-
public class LiteralImpl extends StaticOperandImpl
A literal of a certain data type, possibly "cast(..)" of a literal.
-
-
Constructor Summary
Constructors Constructor Description LiteralImpl(PropertyValue value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PropertyValue
convertValueToType(PropertyValue v, PropertyValue targetType)
@NotNull org.apache.jackrabbit.oak.query.ast.AstElement
copyOf()
PropertyValue
currentValue()
boolean
equals(Object that)
PropertyValue
getLiteralValue()
protected String
getLocalPath(String path)
Calculate the session local path (the path excluding the workspace name) if possible.int
hashCode()
protected String
normalizePath(String path)
Validate and normalize the path.protected String
normalizePropertyName(String propertyName)
Normalize the property name (including namespace remapping).protected String
protect(Object expression)
protected String
quote(String pathOrName)
protected String
quoteJson(String string)
void
setQuery(QueryImpl query)
String
toString()
-
-
-
Field Detail
-
query
protected QueryImpl query
-
-
Constructor Detail
-
LiteralImpl
public LiteralImpl(PropertyValue value)
-
-
Method Detail
-
getLiteralValue
public PropertyValue getLiteralValue()
-
currentValue
public PropertyValue currentValue()
- Specified by:
currentValue
in classStaticOperandImpl
-
setQuery
public void setQuery(QueryImpl query)
-
normalizePropertyName
protected String normalizePropertyName(String propertyName)
Normalize the property name (including namespace remapping). Asterisks are kept.- Parameters:
propertyName
- the property name to normalize- Returns:
- the normalized (oak-) property name
-
normalizePath
protected String normalizePath(String path)
Validate and normalize the path.- Parameters:
path
- the path to validate- Returns:
- the validated and normalized path
-
convertValueToType
protected PropertyValue convertValueToType(PropertyValue v, PropertyValue targetType)
-
getLocalPath
protected String getLocalPath(String path)
Calculate the session local path (the path excluding the workspace name) if possible.- Parameters:
path
- the absolute path- Returns:
- the session local path, or null if not within this workspace
-
copyOf
@NotNull public @NotNull org.apache.jackrabbit.oak.query.ast.AstElement copyOf()
- Returns:
- a clone of self. Default implementation in
AstElement
returns same reference tothis
.
-
-