test_class.file: shardingsphere-sql-parser/shardingsphere-sql-parser-statement/src/test/java/org/apache/shardingsphere/sql/parser/sql/dialect/handler/ddl/AlterIndexStatementHandlerTest.java
test_class.identifier: AlterIndexStatementHandlerTest
test_case.body: @Test
      public void assertGetSimpleTableSegmentWithSimpleTableSegmentForSQLServer() {
          SQLServerAlterIndexStatement alterIndexStatement = new SQLServerAlterIndexStatement();
          alterIndexStatement.setTable(new SimpleTableSegment(0, 0, new IdentifierValue("")));
          Optional<SimpleTableSegment> simpleTableSegment = AlterIndexStatementHandler.getSimpleTableSegment(alterIndexStatement);
          assertTrue(simpleTableSegment.isPresent());
      }
test_case.class_method_signature: AlterIndexStatementHandlerTest.assertGetSimpleTableSegmentWithSimpleTableSegmentForSQLServer()
test_case.full_signature: @Test public void assertGetSimpleTableSegmentWithSimpleTableSegmentForSQLServer()
test_case.identifier: assertGetSimpleTableSegmentWithSimpleTableSegmentForSQLServer
test_case.invocations: setTable getSimpleTableSegment assertTrue isPresent
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertGetSimpleTableSegmentWithSimpleTableSegmentForSQLServer()
focal_class.file: shardingsphere-sql-parser/shardingsphere-sql-parser-statement/src/main/java/org/apache/shardingsphere/sql/parser/sql/dialect/handler/ddl/AlterIndexStatementHandler.java
focal_class.identifier: AlterIndexStatementHandler
focal_class.interfaces: implements SQLStatementHandler
focal_class.class_method_signature: AlterIndexStatementHandler.getSimpleTableSegment(final AlterIndexStatement alterIndexStatement)
focal_class.full_signature: public static Optional<SimpleTableSegment> getSimpleTableSegment(final AlterIndexStatement alterIndexStatement)
focal_class.identifier: getSimpleTableSegment
focal_class.modifiers: public static
focal_class.parameters: (final AlterIndexStatement alterIndexStatement)
focal_class.return: Optional<SimpleTableSegment>
focal_class.signature: Optional<SimpleTableSegment> getSimpleTableSegment(final AlterIndexStatement alterIndexStatement)
focal_method.body: public static Optional<SimpleTableSegment> getSimpleTableSegment(final AlterIndexStatement alterIndexStatement) {
          if (alterIndexStatement instanceof SQLServerStatement) {
              return ((SQLServerAlterIndexStatement) alterIndexStatement).getTable();
          }
          return Optional.empty();
      }
focal_method.class_method_signature: AlterIndexStatementHandler.getSimpleTableSegment(final AlterIndexStatement alterIndexStatement)
focal_method.full_signature: public static Optional<SimpleTableSegment> getSimpleTableSegment(final AlterIndexStatement alterIndexStatement)
focal_method.identifier: getSimpleTableSegment
focal_method.invocations: getTable empty
focal_method.modifiers: public static
focal_method.parameters: (final AlterIndexStatement alterIndexStatement)
focal_method.return: Optional<SimpleTableSegment>
focal_method.signature: Optional<SimpleTableSegment> getSimpleTableSegment(final AlterIndexStatement alterIndexStatement)