Class Delimiter
- java.lang.Object
-
- migratedb.v1.core.api.internal.sqlscript.Delimiter
-
public class Delimiter extends Object
Represents a sql statement delimiter.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetDelimiter()@Nullable StringgetEscape()inthashCode()booleanshouldBeAloneOnLine()StringtoString()
-
-
-
Constructor Detail
-
Delimiter
public Delimiter(String delimiter, boolean aloneOnLine)
Creates a new delimiter.- Parameters:
delimiter- The actual delimiter string.aloneOnLine- Whether the delimiter sits alone on a new line or not.
-
-
Method Detail
-
getDelimiter
public String getDelimiter()
- Returns:
- The actual delimiter string.
-
shouldBeAloneOnLine
public boolean shouldBeAloneOnLine()
- Returns:
- Whether the delimiter sits alone on a new line or not.
-
getEscape
public @Nullable String getEscape()
- Returns:
- The escape string for the delimiter, if any.
-
-