Class Literal

  • All Implemented Interfaces:
    Serializable

    public class Literal
    extends Expression
    Represents a literal object that will have no specific translation.
    Since:
    2.0.0
    Author:
    Rui Vilao (rui.vilao@feedzai.com)
    See Also:
    Serialized Form
    • Constructor Detail

      • Literal

        public Literal​(Object o)
        Creates a new instance of Literal.
        Parameters:
        o - The literal.
    • Method Detail

      • getLiteral

        public Object getLiteral()
        Gets the literal object.
        Returns:
        The literal object.
      • translate

        public String translate()
        Description copied from class: Expression
        Translates the expression.
        Specified by:
        translate in class Expression
        Returns:
        A translation of the implementing expression.