Package com._1c.g5.v8.dt.bsl.scoping
Class BslGlobalScopeFilter
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.scoping.BslGlobalScopeFilter
-
- All Implemented Interfaces:
com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription>
,Predicate<org.eclipse.xtext.resource.IEObjectDescription>
public class BslGlobalScopeFilter extends Object implements com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription>
Instance of this class is intended to be used as a filter in a global scope.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BslGlobalScopeFilter.Builder
Creates newBslGlobalScopeFilter
.
-
Constructor Summary
Constructors Constructor Description BslGlobalScopeFilter(Environments environments, boolean ignoreAppModules, boolean ignoreServerCalls, BslAdditionalIndexInformationHelper indexInformationHelper)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
apply(org.eclipse.xtext.resource.IEObjectDescription input)
static BslGlobalScopeFilter.Builder
builder(BslAdditionalIndexInformationHelper indexInformationHelper)
Creates special object for filtering by environmentsEnvironments
getEnvironments()
Gets current environmentsboolean
isIgnoreAppModules()
Checks for appModuleboolean
isIgnoreServerCalls()
Checks for ignore server calls
-
-
-
Constructor Detail
-
BslGlobalScopeFilter
public BslGlobalScopeFilter(Environments environments, boolean ignoreAppModules, boolean ignoreServerCalls, BslAdditionalIndexInformationHelper indexInformationHelper)
Constructor- Parameters:
environments
- only entities accessible in this environments should be in the scope. May benull
. In a such case scope is not filtered by environment.ignoreAppModules
- iftrue
external properties and methods of application modules are filtered out.ignoreServerCalls
- iftrue
calls to server global modules are filtered out.indexInformationHelper
- special service providing additional information for Bsl index, can't benull
-
-
Method Detail
-
builder
public static BslGlobalScopeFilter.Builder builder(BslAdditionalIndexInformationHelper indexInformationHelper)
Creates special object for filtering by environments- Parameters:
indexInformationHelper
- special service providing additional information for Bsl index, can't benull
- Returns:
- new filter
-
apply
public boolean apply(org.eclipse.xtext.resource.IEObjectDescription input)
- Specified by:
apply
in interfacecom.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription>
-
getEnvironments
public Environments getEnvironments()
Gets current environments- Returns:
- environments, can be
null
when no filters for environments
-
isIgnoreAppModules
public boolean isIgnoreAppModules()
Checks for appModule- Returns:
true
if it is appModule
-
isIgnoreServerCalls
public boolean isIgnoreServerCalls()
Checks for ignore server calls- Returns:
true
if ignore server calls
-
-