Class ExpressionToCQL2Json

  • All Implemented Interfaces:

    public class ExpressionToCQL2Json
    extends Object
    implements ExpressionVisitor
    This class is responsible to convert an expression to a CQL2-JSON expression.
    • Constructor Summary

      Constructor Description
      ExpressionToCQL2Json​(ObjectMapper objectMapper)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Object visit​(Add expression, Object extraData)  
      Object visit​(Divide expression, Object extraData)  
      Object visit​(Function expression, Object extraData)  
      Object visit​(Literal expression, Object extraData)  
      Object visit​(Multiply expression, Object extraData)  
      Object visit​(NilExpression expression, Object extraData)
      Used to visit a Expression.NIL, also called for null where an expression is expected.
      Object visit​(PropertyName expression, Object extraData)  
      Object visit​(Subtract expression, Object extraData)  
      • Methods inherited from class Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExpressionToCQL2Json

        public ExpressionToCQL2Json​(ObjectMapper objectMapper)
    • Method Detail

      • visit

        public Object visit​(NilExpression expression,
                            Object extraData)
        Description copied from interface: ExpressionVisitor
        Used to visit a Expression.NIL, also called for null where an expression is expected.

        This is particularly useful when doing data transformations, as an example when using a StyleSymbolizer Expression.NIL can be used to represent the default stroke color.

        Specified by:
        visit in interface ExpressionVisitor
        implementation specific