Class ColumnExpressionValidator

java.lang.Object
com.github.javaparser.ast.visitor.VoidVisitorAdapter<Object>
io.deephaven.server.table.validation.ColumnExpressionValidator
All Implemented Interfaces:
com.github.javaparser.ast.visitor.VoidVisitor<Object>

public class ColumnExpressionValidator extends com.github.javaparser.ast.visitor.VoidVisitorAdapter<Object>
Validates a column expression coming from the web api, to ensure that the included code will use the limited supported API, and no use of `new`. This must be an early pass at the AST on the server, as the server's stricter validation will not function without it.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    validateColumnExpressions(SelectColumn[] selectColumns, String[] originalExpressions, Table table)
     
    static WhereFilter[]
    validateSelectFilters(String[] conditionalExpressions, Table table)
     
    void
    visit(com.github.javaparser.ast.expr.MethodCallExpr n, Object arg)
     
    void
    visit(com.github.javaparser.ast.expr.ObjectCreationExpr n, Object arg)
     

    Methods inherited from class com.github.javaparser.ast.visitor.VoidVisitorAdapter

    visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit

    Methods inherited from class java.lang.Object

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

    • ColumnExpressionValidator

      public ColumnExpressionValidator()
  • Method Details

    • validateSelectFilters

      public static WhereFilter[] validateSelectFilters(String[] conditionalExpressions, Table table)
    • validateColumnExpressions

      public static void validateColumnExpressions(SelectColumn[] selectColumns, String[] originalExpressions, Table table)
    • visit

      public void visit(com.github.javaparser.ast.expr.MethodCallExpr n, Object arg)
      Specified by:
      visit in interface com.github.javaparser.ast.visitor.VoidVisitor<Object>
      Overrides:
      visit in class com.github.javaparser.ast.visitor.VoidVisitorAdapter<Object>
    • visit

      public void visit(com.github.javaparser.ast.expr.ObjectCreationExpr n, Object arg)
      Specified by:
      visit in interface com.github.javaparser.ast.visitor.VoidVisitor<Object>
      Overrides:
      visit in class com.github.javaparser.ast.visitor.VoidVisitorAdapter<Object>