Class ScopeFilter
- java.lang.Object
-
- org.apache.derby.iapi.sql.compile.ScopeFilter
-
- All Implemented Interfaces:
VisitableFilter
public class ScopeFilter extends java.lang.Object implements VisitableFilter
Filter which passes Visitables only if the compiler is inside a named scope.
-
-
Field Summary
Fields Modifier and Type Field Description private CompilerContext
_compilerContext
private int
_minDepth
private java.lang.String
_scopeName
-
Constructor Summary
Constructors Constructor Description ScopeFilter(CompilerContext compilerContext, java.lang.String scopeName, int minDepth)
Construct a filter for the given scope and minimal expected depth.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(Visitable visitable)
Return true if the Visitable passes the filter.
-
-
-
Field Detail
-
_compilerContext
private CompilerContext _compilerContext
-
_scopeName
private java.lang.String _scopeName
-
_minDepth
private int _minDepth
-
-
Constructor Detail
-
ScopeFilter
public ScopeFilter(CompilerContext compilerContext, java.lang.String scopeName, int minDepth)
Construct a filter for the given scope and minimal expected depth.
-
-
Method Detail
-
accept
public boolean accept(Visitable visitable) throws StandardException
Description copied from interface:VisitableFilter
Return true if the Visitable passes the filter.- Specified by:
accept
in interfaceVisitableFilter
- Throws:
StandardException
-
-