| Package | Description |
|---|---|
| gudusoft.gsqlparser.dlineage.routine |
| Modifier and Type | Method and Description |
|---|---|
static RoutineName |
RoutineName.declared(TObjectName name,
CatalogObjectKind kind,
EDbVendor vendor,
IdentifierService service,
TObjectName enclosingPackage)
The name a routine is declared with: a member of the enclosing package when it is declared inside one
unqualified, else the name as written (a qualifier of a standalone declaration is its schema).
|
RoutineName |
RoutineDeclaration.getName() |
| Modifier and Type | Method and Description |
|---|---|
static List<RoutineName> |
RoutineName.interpretations(TObjectName name,
CatalogObjectKind kind,
EDbVendor vendor,
IdentifierService service,
TObjectName enclosingPackage)
The interpretations of a called name: one, or two for an Oracle name
x.f or a call inside a package. |
| Modifier and Type | Method and Description |
|---|---|
static RoutineDeclaration |
RoutineDeclaration.of(Object model,
Object origin,
RoutineName name,
TParameterDeclarationList parameters,
EDbVendor vendor,
IdentifierService service)
RoutineDeclaration.of(Object, RoutineName, TParameterDeclarationList, Object, EDbVendor, IdentifierService) for a
top-level routine; model is not kept (the typed registry holds declarations, not legacy models). |
static RoutineDeclaration |
RoutineDeclaration.of(Object origin,
RoutineName name,
TParameterDeclarationList parameters,
Object scope,
EDbVendor vendor,
IdentifierService service)
A declaration from its AST:
scope the routine it is local to (null for a top-level or package
routine). |
static RoutineDeclaration |
RoutineDeclaration.ofCall(Object origin,
RoutineName name,
Integer argumentCount,
EDbVendor vendor)
A routine known only from a call or an EXEC of a module never defined here: a name and a count.
|
| Modifier and Type | Method and Description |
|---|---|
RoutineLookupResult |
RoutineRegistry.lookup(List<RoutineName> interpretations,
Integer argumentCount)
Looks a routine up by the interpretations of its written name and, when the call site keys it with
one, the argument count (
null for a name-only lookup). |
RoutineLookupResult |
RoutineRegistry.lookup(List<RoutineName> interpretations,
Integer argumentCount,
CatalogObjectKind wanted,
Collection<Object> visibleScopes)
A lookup for a routine of
wanted kind (ROUTINE when the call site does not say), seeing the local
routines declared in visibleScopes (the routines enclosing the call); triggers are not callable. |