org.modeshape.jcr.query.model
Class Literal
java.lang.Object
org.modeshape.jcr.query.model.Literal
- All Implemented Interfaces:
- Serializable, Operand, StaticOperand, LanguageObject, Visitable
- Direct Known Subclasses:
- LiteralValue
@Immutable
public class Literal
- extends Object
- implements StaticOperand
A literal value used in a Comparison
constraint.
- See Also:
- Serialized Form
Literal
public Literal(Object value)
value
public final Object value()
- Get the literal value.
- Returns:
- the value; never null
toString
public String toString()
- Overrides:
toString
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
accept
public void accept(Visitor visitor)
- Description copied from interface:
Visitable
- Accept the supplied visitor, which should call back to the visitor to complete the double-dispatch operation.
- Specified by:
accept
in interface Visitable
- Parameters:
visitor
- the visitor; never null
Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.