Uses of Interface
gudusoft.gsqlparser.resolver2.scope.IScope
Packages that use IScope
Package
Description
-
Uses of IScope in gudusoft.gsqlparser.resolver2
Methods in gudusoft.gsqlparser.resolver2 that return IScopeModifier and TypeMethodDescriptionScopeBuildResult.getScopeForColumn(TObjectName column) Get the scope for a specific column referenceMethods in gudusoft.gsqlparser.resolver2 that return types with arguments of type IScopeMethods in gudusoft.gsqlparser.resolver2 with parameters of type IScopeModifier and TypeMethodDescriptionNameResolver.findNamespacesWithColumn(String columnName, IScope scope) Find all namespaces that contain a given column.NameResolver.resolve(TObjectName objName, IScope scope) Resolve a column reference (TObjectName) within a given scope.Constructor parameters in gudusoft.gsqlparser.resolver2 with type arguments of type IScopeModifierConstructorDescriptionScopeBuildResult(GlobalScope globalScope, Map<TObjectName, IScope> columnToScopeMap, List<TObjectName> allColumnReferences, Map<TSelectSqlStatement, SelectScope> statementScopeMap, Map<TObjectName, TTable> usingColumnToRightTable) ScopeBuildResult(GlobalScope globalScope, Map<TObjectName, IScope> columnToScopeMap, List<TObjectName> allColumnReferences, Map<TSelectSqlStatement, SelectScope> statementScopeMap, Map<TObjectName, TTable> usingColumnToRightTable, Map<TObjectName, TTable> usingColumnToLeftTable) ScopeBuildResult(GlobalScope globalScope, Map<TObjectName, IScope> columnToScopeMap, List<TObjectName> allColumnReferences, Map<TSelectSqlStatement, SelectScope> statementScopeMap, Map<TObjectName, TTable> usingColumnToRightTable, Map<TObjectName, TTable> usingColumnToLeftTable, Map<TTable, INamespace> tableToNamespaceMap) ScopeBuildResult(GlobalScope globalScope, Map<TObjectName, IScope> columnToScopeMap, List<TObjectName> allColumnReferences, Map<TSelectSqlStatement, SelectScope> statementScopeMap, Map<TObjectName, TTable> usingColumnToRightTable, Map<TObjectName, TTable> usingColumnToLeftTable, Map<TTable, INamespace> tableToNamespaceMap, Set<TTable> ctasTargetTables) -
Uses of IScope in gudusoft.gsqlparser.resolver2.model
Methods in gudusoft.gsqlparser.resolver2.model with parameters of type IScopeModifier and TypeMethodDescriptionstatic FromScopeIndexCreates an index from a scope, extracting the FromScope if needed. -
Uses of IScope in gudusoft.gsqlparser.resolver2.result
Methods in gudusoft.gsqlparser.resolver2.result that return IScopeModifier and TypeMethodDescriptionIResolutionResult.getScope(TCustomSqlStatement stmt) 获取指定语句的 Scope 仅供高级用户使用,一般不需要直接访问 ScopeResolutionResultImpl.getScope(TCustomSqlStatement stmt) -
Uses of IScope in gudusoft.gsqlparser.resolver2.scope
Classes in gudusoft.gsqlparser.resolver2.scope that implement IScopeModifier and TypeClassDescriptionclassAbstract base class for all scopes.classScope for Common Table Expressions (WITH clause).classScope for DELETE statement.classEmpty scope - terminates the scope chain.classScope for FROM clause.classGlobal scope - contains session-level objects and metadata.classScope for GROUP BY clause.classScope for HAVING clause.classScope for JOIN operations.classBase class for scopes that manage a list of child namespaces.classScope for MERGE statement.classScope for Oracle PL/SQL package bodies.classScope for ORDER BY clause.classScope for PL/SQL blocks (Oracle, PostgreSQL PL/pgSQL).classScope for SELECT statement.classScope for UPDATE statement.Fields in gudusoft.gsqlparser.resolver2.scope declared as IScopeModifier and TypeFieldDescriptionprotected final IScopeAbstractScope.parentParent scope (never null - root has EmptyScope parent)final IScopeResolvedImpl.Match.scopeMethods in gudusoft.gsqlparser.resolver2.scope that return IScopeModifier and TypeMethodDescriptionGroupByScope.getFromScope()Get the FROM scope.OrderByScope.getFromScope()Get the FROM scope.HavingScope.getGroupByScope()Get the GROUP BY scope.AbstractScope.getParent()EmptyScope.getParent()IScope.getParent()Get the parent scope.HavingScope.getSelectScope()Get the SELECT scope.OrderByScope.getSelectScope()Get the SELECT scope.DeleteScope.getWhereScope()SelectScope.getWhereScope()UpdateScope.getWhereScope()Methods in gudusoft.gsqlparser.resolver2.scope with parameters of type IScopeModifier and TypeMethodDescriptionvoidIResolved.found(INamespace namespace, boolean nullable, IScope scope, ResolvePath path, List<String> remainingNames) Called when a namespace is found that matches the name being resolved.voidResolvedImpl.found(INamespace namespace, boolean nullable, IScope scope, ResolvePath path, List<String> remainingNames) booleanDefault implementation: check ancestrybooleanbooleanCheck if this scope is within (nested inside) another scope.voidGroupByScope.setFromScope(IScope fromScope) Set the FROM scope for column resolution.voidOrderByScope.setFromScope(IScope fromScope) Set the FROM scope for column resolution.voidHavingScope.setGroupByScope(IScope groupByScope) Set the GROUP BY scope for column resolution.voidHavingScope.setSelectScope(IScope selectScope) Set the SELECT scope for alias resolution.voidOrderByScope.setSelectScope(IScope selectScope) Set the SELECT scope for alias resolution.voidDeleteScope.setWhereScope(IScope whereScope) voidSelectScope.setWhereScope(IScope whereScope) voidUpdateScope.setWhereScope(IScope whereScope) Constructors in gudusoft.gsqlparser.resolver2.scope with parameters of type IScopeModifierConstructorDescriptionprotectedAbstractScope(IScope parent, TParseTreeNode node, ScopeType scopeType) DeleteScope(IScope parent, TDeleteSqlStatement stmt) FromScope(IScope parent, TParseTreeNode node) GroupByScope(IScope parent, TGroupBy groupByNode) HavingScope(IScope parent, TExpression havingCondition) protectedListBasedScope(IScope parent, TParseTreeNode node, ScopeType scopeType) Match(INamespace namespace, boolean nullable, IScope scope, ResolvePath path, List<String> remainingNames) MergeScope(IScope parent, TMergeSqlStatement stmt) OraclePackageScope(IScope parent, TPlsqlCreatePackage packageStmt, OraclePackageNamespace packageNamespace) Create a new Oracle package scope.OrderByScope(IScope parent, TOrderBy orderByNode) PlsqlBlockScope(IScope parent, TBlockSqlNode blockNode) Create a new PL/SQL block scope for a labeled block.PlsqlBlockScope(IScope parent, TCustomSqlStatement stmt, String procedureName) Create a new PL/SQL block scope for a stored procedure or function.SelectScope(IScope parent, TParseTreeNode node) UpdateScope(IScope parent, TUpdateSqlStatement stmt)