public class StringAndPos extends Object
| Modifier and Type | Field and Description |
|---|---|
int |
cursor |
@Nullable SqlParserPos |
pos |
String |
sql |
| Modifier and Type | Method and Description |
|---|---|
String |
addCarets() |
boolean |
equals(@Nullable Object o) |
int |
hashCode() |
static StringAndPos |
of(String sql)
Looks for one or two carets in a SQL string, and if present, converts
them into a parser position.
|
String |
toString() |
public final String sql
public final int cursor
public final @Nullable SqlParserPos pos
public static StringAndPos of(String sql)
Examples:
public String addCarets()
Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.