1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.shardingsphere.sql.parser.sql.common.segment.ddl.routine;
19
20 import lombok.Getter;
21 import lombok.RequiredArgsConstructor;
22 import lombok.Setter;
23 import org.apache.shardingsphere.sql.parser.sql.common.segment.SQLSegment;
24 import org.apache.shardingsphere.sql.parser.sql.common.segment.generic.OwnerAvailable;
25 import org.apache.shardingsphere.sql.parser.sql.common.segment.generic.OwnerSegment;
26 import org.apache.shardingsphere.sql.parser.sql.common.value.identifier.IdentifierValue;
27
28 import java.util.Optional;
29
30
31
32
33 @RequiredArgsConstructor
34 @Getter
35 @Setter
36 public final class FunctionNameSegment implements SQLSegment, OwnerAvailable {
37
38 private final int startIndex;
39
40 private final int stopIndex;
41
42 private final IdentifierValue identifier;
43
44 private OwnerSegment owner;
45
46 @Override
47 public Optional<OwnerSegment> getOwner() {
48 return Optional.ofNullable(owner);
49 }
50 }