Class TypeDescriptionInfoWithCategories
- java.lang.Object
-
- com._1c.g5.v8.dt.platform.core.typeinfo.TypeDescriptionInfo
-
- com._1c.g5.v8.dt.platform.core.typeinfo.TypeDescriptionInfoWithCategories
-
- All Implemented Interfaces:
ITypeDescriptionInfoWithCategories
public class TypeDescriptionInfoWithCategories extends TypeDescriptionInfo implements ITypeDescriptionInfoWithCategories
Extension ofTypeDescriptionInfo
. ImplementsITypeDescriptionInfoWithCategories
-
-
Field Summary
Fields Modifier and Type Field Description protected Collection<String>
additionalExcludeTypes
protected Collection<org.eclipse.xtext.util.Pair<String,String>>
additionalIncludeTypes
protected Collection<ITypeInfoCategory>
excludeTypeCategories
protected Collection<ITypeInfoCategory>
includeTypeCategories
protected Collection<ITypeInfoCategory>
intersectTypeCategories
protected com.google.common.base.Predicate<TypeItem>
typeItemFilter
-
Constructor Summary
Constructors Constructor Description TypeDescriptionInfoWithCategories()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAdditionalExcludeTypes(Collection<String> typeName)
Adds additional excluding types toTypeDescriptionInfo
void
addAdditionalIncludeTypes(Collection<org.eclipse.xtext.util.Pair<String,String>> typeName)
Adds additional including types toTypeDescriptionInfo
void
addExcludeTypeCategories(Collection<ITypeInfoCategory> category)
Adds excluding types info categories toTypeDescriptionInfo
void
addIncludeTypeCategories(Collection<ITypeInfoCategory> category)
Adds including types info categories toTypeDescriptionInfo
void
addIntersectCategory(Collection<ITypeInfoCategory> categories)
Adds special categories for filtering final set ofTypeInfo
s.List<TypeInfo>
computeTypeInfos(org.eclipse.xtext.scoping.IScope scope, IClassifiersTypeInfoServiceProvider classifiersProvider, Version version)
Computes realTypeInfo
s by description of including and excluding type info categories and including and excluding type namesList<TypeInfo>
computeTypeInfos(org.eclipse.xtext.scoping.IScope scope, IClassifiersTypeInfoServiceProvider classifiersProvider, Version version, org.eclipse.core.resources.IProject project)
Computes realTypeInfo
s by description of including and excluding type info categories and including and excluding type namesboolean
contains(TypeItem type)
Checks thattype
contains in this descriptionTypeDescriptionInfoWithTypeInfo
createTypeDescriptionInfoWithTypeInfo(org.eclipse.xtext.scoping.IScope scope, IClassifiersTypeInfoServiceProvider classifiersProvider, Version version)
CreatesTypeDescriptionInfoWithTypeInfo
by description of including and excluding type info categories and including and excluding type namesTypeDescriptionInfoWithTypeInfo
createTypeDescriptionInfoWithTypeInfo(org.eclipse.xtext.scoping.IScope scope, IClassifiersTypeInfoServiceProvider classifiersProvider, Version version, org.eclipse.core.resources.IProject project)
CreatesTypeDescriptionInfoWithTypeInfo
by description of including and excluding type info categories and including and excluding type namesvoid
setTypeItemFilter(com.google.common.base.Predicate<TypeItem> filter)
Sets special filter ofTypeItem
containing in theTypeDescriptionInfo
-
Methods inherited from class com._1c.g5.v8.dt.platform.core.typeinfo.TypeDescriptionInfo
getDateFractions, getMaxBinaryLenFix, getMaxBinaryLenVar, getMaxPrecisionLen, getMaxScaleLen, getMaxStringLenFix, getMaxStringLenVar, getMinBinaryLen, getMinStringLen, isCompositeTypeEnable, isEmptyTypeEnable, isMixSingleEnable, isNumericPositiveOnly, isQualifiersEnable, isStringFixedOnly, setCompositeTypeEnable, setDateFractions, setEmptyTypeEnable, setMaxBinaryLenFix, setMaxBinaryLenVar, setMaxPrecisionLen, setMaxScaleLen, setMaxStringLenFix, setMaxStringLenVar, setMinBinaryLen, setMinStringLen, setMixSingleEnable, setNumericPositiveOnly, setQualifiersEnable, setStringFixedOnly
-
-
-
-
Field Detail
-
includeTypeCategories
protected Collection<ITypeInfoCategory> includeTypeCategories
-
excludeTypeCategories
protected Collection<ITypeInfoCategory> excludeTypeCategories
-
intersectTypeCategories
protected Collection<ITypeInfoCategory> intersectTypeCategories
-
additionalIncludeTypes
protected Collection<org.eclipse.xtext.util.Pair<String,String>> additionalIncludeTypes
-
additionalExcludeTypes
protected Collection<String> additionalExcludeTypes
-
typeItemFilter
protected com.google.common.base.Predicate<TypeItem> typeItemFilter
-
-
Method Detail
-
addIncludeTypeCategories
public void addIncludeTypeCategories(Collection<ITypeInfoCategory> category)
Description copied from interface:ITypeDescriptionInfoWithCategories
Adds including types info categories toTypeDescriptionInfo
- Specified by:
addIncludeTypeCategories
in interfaceITypeDescriptionInfoWithCategories
- Parameters:
category
- including types info categories, can't benull
-
addExcludeTypeCategories
public void addExcludeTypeCategories(Collection<ITypeInfoCategory> category)
Description copied from interface:ITypeDescriptionInfoWithCategories
Adds excluding types info categories toTypeDescriptionInfo
- Specified by:
addExcludeTypeCategories
in interfaceITypeDescriptionInfoWithCategories
-
addAdditionalIncludeTypes
public void addAdditionalIncludeTypes(Collection<org.eclipse.xtext.util.Pair<String,String>> typeName)
Description copied from interface:ITypeDescriptionInfoWithCategories
Adds additional including types toTypeDescriptionInfo
- Specified by:
addAdditionalIncludeTypes
in interfaceITypeDescriptionInfoWithCategories
- Parameters:
typeName
- names of adding types (pair should be contained name and nameRu of the type), can't benull
-
addAdditionalExcludeTypes
public void addAdditionalExcludeTypes(Collection<String> typeName)
Description copied from interface:ITypeDescriptionInfoWithCategories
Adds additional excluding types toTypeDescriptionInfo
- Specified by:
addAdditionalExcludeTypes
in interfaceITypeDescriptionInfoWithCategories
- Parameters:
typeName
- typeNames names of excluding types, can't benull
-
addIntersectCategory
public void addIntersectCategory(Collection<ITypeInfoCategory> categories)
Description copied from interface:ITypeDescriptionInfoWithCategories
Adds special categories for filtering final set ofTypeInfo
s. Set ofTypeInfo
s determinated by methods:ITypeDescriptionInfoWithCategories.addIncludeTypeCategories(Collection)
ITypeDescriptionInfoWithCategories.addExcludeTypeCategories(Collection)
ITypeDescriptionInfoWithCategories.addAdditionalIncludeTypes(Collection)
ITypeDescriptionInfoWithCategories.addAdditionalExcludeTypes(Collection)
categories
- Specified by:
addIntersectCategory
in interfaceITypeDescriptionInfoWithCategories
- Parameters:
categories
- special filter categories for final set ofTypeInfo
s, can't benull
-
contains
public boolean contains(TypeItem type)
Description copied from class:TypeDescriptionInfo
Checks thattype
contains in this description- Specified by:
contains
in classTypeDescriptionInfo
- Parameters:
type
- checking type, can't benull
- Returns:
true
iftype
contains in this description,false
otherwise
-
computeTypeInfos
public List<TypeInfo> computeTypeInfos(org.eclipse.xtext.scoping.IScope scope, IClassifiersTypeInfoServiceProvider classifiersProvider, Version version)
Description copied from interface:ITypeDescriptionInfoWithCategories
Computes realTypeInfo
s by description of including and excluding type info categories and including and excluding type names- Specified by:
computeTypeInfos
in interfaceITypeDescriptionInfoWithCategories
- Parameters:
scope
- actualIScope
of types, can't benull
classifiersProvider
- actualIClassifiersTypeInfoServiceProvider
, can't benull
version
- currentVersion
, can't benull
- Returns:
- list of real
TypeInfo
s by description of including and excluding type info categories and including and excluding type names, nevernull
-
computeTypeInfos
public List<TypeInfo> computeTypeInfos(org.eclipse.xtext.scoping.IScope scope, IClassifiersTypeInfoServiceProvider classifiersProvider, Version version, org.eclipse.core.resources.IProject project)
Description copied from interface:ITypeDescriptionInfoWithCategories
Computes realTypeInfo
s by description of including and excluding type info categories and including and excluding type names- Specified by:
computeTypeInfos
in interfaceITypeDescriptionInfoWithCategories
- Parameters:
scope
- actualIScope
of types, can't benull
classifiersProvider
- actualIClassifiersTypeInfoServiceProvider
, can't benull
version
- currentVersion
, can't benull
project
- actualIProject
, can benull
- Returns:
- list of real
TypeInfo
s by description of including and excluding type info categories and including and excluding type names, nevernull
-
createTypeDescriptionInfoWithTypeInfo
public TypeDescriptionInfoWithTypeInfo createTypeDescriptionInfoWithTypeInfo(org.eclipse.xtext.scoping.IScope scope, IClassifiersTypeInfoServiceProvider classifiersProvider, Version version)
Description copied from interface:ITypeDescriptionInfoWithCategories
CreatesTypeDescriptionInfoWithTypeInfo
by description of including and excluding type info categories and including and excluding type names- Specified by:
createTypeDescriptionInfoWithTypeInfo
in interfaceITypeDescriptionInfoWithCategories
- Parameters:
scope
- actualIScope
of types, can't benull
classifiersProvider
- actualIClassifiersTypeInfoServiceProvider
, can't benull
version
- currentVersion
, can't benull
- Returns:
- created
TypeDescriptionInfoWithTypeInfo
by description of including and excluding type info categories and including and excluding type names, nevernull
-
createTypeDescriptionInfoWithTypeInfo
public TypeDescriptionInfoWithTypeInfo createTypeDescriptionInfoWithTypeInfo(org.eclipse.xtext.scoping.IScope scope, IClassifiersTypeInfoServiceProvider classifiersProvider, Version version, org.eclipse.core.resources.IProject project)
Description copied from interface:ITypeDescriptionInfoWithCategories
CreatesTypeDescriptionInfoWithTypeInfo
by description of including and excluding type info categories and including and excluding type names- Specified by:
createTypeDescriptionInfoWithTypeInfo
in interfaceITypeDescriptionInfoWithCategories
- Parameters:
scope
- actualIScope
of types, can't benull
classifiersProvider
- actualIClassifiersTypeInfoServiceProvider
, can't benull
version
- currentVersion
, can't benull
project
- actualIProject
, can benull
- Returns:
- created
TypeDescriptionInfoWithTypeInfo
by description of including and excluding type info categories and including and excluding type names, nevernull
-
setTypeItemFilter
public void setTypeItemFilter(com.google.common.base.Predicate<TypeItem> filter)
Description copied from interface:ITypeDescriptionInfoWithCategories
Sets special filter ofTypeItem
containing in theTypeDescriptionInfo
- Specified by:
setTypeItemFilter
in interfaceITypeDescriptionInfoWithCategories
- Parameters:
filter
- special filter, can't benull
-
-