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

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Literal(Object value)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `accept(Visitor visitor)` Accept the supplied visitor, which should call back to the visitor to complete the double-dispatch operation.
    `boolean` | `equals(Object obj)`
    `int` | `hashCode()`
    `String` | `toString()`
    `Object` | `value()` Get the literal value.

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### Literal

          public Literal(Object value)

  - ### Method Detail

    - #### 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-2014 JBoss, a division of Red Hat. All Rights Reserved.