Class SQLTableVariable

All Implemented Interfaces:
BoxVisitable

public class SQLTableVariable extends SQLTable
Class representing SQL table as a variable name
  • Constructor Details

    • SQLTableVariable

      public SQLTableVariable(String schema, String name, String alias, int index, Position position, String sourceText)
      Constructor
      Parameters:
      position - position of the statement in the source code
      sourceText - source code of the statement
  • Method Details

    • getSchema

      public String getSchema()
      Get the schema name
    • setSchema

      public void setSchema(String schema)
      Set the schema name
    • getName

      public Key getName()
      Get the table name
    • setName

      public void setName(String name)
      Set the table name
    • isCalled

      public boolean isCalled(Key name)
      Specified by:
      isCalled in class SQLTable
    • getVariableName

      public String getVariableName()
    • accept

      public void accept(VoidBoxVisitor v)
      Description copied from interface: BoxVisitable
      Accept method for visitor support.
      Parameters:
      v - the visitor implementation
    • accept

      public BoxNode accept(ReplacingBoxVisitor v)
      Description copied from interface: BoxVisitable
      Accept method for replacing visitor support. Each accept returns the node, or a replacement node.
      Parameters:
      v - the visitor implementation
    • toMap

      public Map<String,Object> toMap()
      Overrides:
      toMap in class BoxNode