Class CreatorTreeState
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.typesystem.util.CreatorTreeState
-
- Direct Known Subclasses:
LightCreatorTreeState
public class CreatorTreeState extends Object
Creator of tree type state Go throw whole module and find all points creating type state
-
-
Field Summary
Fields Modifier and Type Field Description static String
STRUCTURE_OR_VALUE_TABLE_INSERT_NAME_METHOD
static String
STRUCTURE_OR_VALUE_TABLE_INSERT_NAME_METHOD_RU
static String
VALUE_TABLE_ADD_NAME_METHOD
static String
VALUE_TABLE_ADD_NAME_METHOD_RU
-
Constructor Summary
Constructors Constructor Description CreatorTreeState(Block block, DynamicFeatureAccessComputer dynamicComputer, TypesComputer computerTypes, ExportMethodTypeProvider exportMethodTypeProvider, org.eclipse.xtext.scoping.IScope typeScope, org.eclipse.xtext.scoping.IScopeProvider scopeProvider, org.eclipse.xtext.naming.IQualifiedNameConverter qualifiedNameConverter, Deque<VariableTreeTypeState> allComputedState, Deque<Method> callers, TypeSystemProperties properties, IBslOwnerComputerService ownerComputerService, boolean oldCommentFormat, BslMultiLineCommentDocumentationProvider commentProvider, InvocationTypesComputerExtensionRegistry invTypesComputerExtension, TypeSystemMode mode, org.eclipse.xtext.util.CancelIndicator monitor)
Initialize
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doInternalProcess(Statement statement)
Processing all statements in BSL module which can contains or create type stateprotected void
doInternalProcess(UnlabeledStatement statement)
Processing all statements in BSL module which can contains or create type statevoid
doProcess()
Go-round through part of Bsl module, and createIExpressionTypeState
static List<VariableTreeTypeState>
getAllDependState(Expression expr, DynamicFeatureAccessComputer dynamicComputer, IBslOwnerComputerService ownerComputerService, InvocationTypesComputerExtensionRegistry invTypesComputerExtension, TypeSystemMode mode, Environments envs)
Gets allVariableTreeTypeState
from bslExpression
-
-
-
Field Detail
-
STRUCTURE_OR_VALUE_TABLE_INSERT_NAME_METHOD
public static final String STRUCTURE_OR_VALUE_TABLE_INSERT_NAME_METHOD
- See Also:
- Constant Field Values
-
STRUCTURE_OR_VALUE_TABLE_INSERT_NAME_METHOD_RU
public static final String STRUCTURE_OR_VALUE_TABLE_INSERT_NAME_METHOD_RU
- See Also:
- Constant Field Values
-
VALUE_TABLE_ADD_NAME_METHOD
public static final String VALUE_TABLE_ADD_NAME_METHOD
- See Also:
- Constant Field Values
-
VALUE_TABLE_ADD_NAME_METHOD_RU
public static final String VALUE_TABLE_ADD_NAME_METHOD_RU
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CreatorTreeState
public CreatorTreeState(Block block, DynamicFeatureAccessComputer dynamicComputer, TypesComputer computerTypes, ExportMethodTypeProvider exportMethodTypeProvider, org.eclipse.xtext.scoping.IScope typeScope, org.eclipse.xtext.scoping.IScopeProvider scopeProvider, org.eclipse.xtext.naming.IQualifiedNameConverter qualifiedNameConverter, Deque<VariableTreeTypeState> allComputedState, Deque<Method> callers, TypeSystemProperties properties, IBslOwnerComputerService ownerComputerService, boolean oldCommentFormat, BslMultiLineCommentDocumentationProvider commentProvider, InvocationTypesComputerExtensionRegistry invTypesComputerExtension, TypeSystemMode mode, org.eclipse.xtext.util.CancelIndicator monitor)
Initialize- Parameters:
block
- part of Bsl moduledynamicComputer
-DynamicFeatureAccessComputer
computerTypes
-TypesComputer
mapper
-BslMapper
for finding corresponding betweenMethod
andMethod
exportMethodTypeProvider
-ExportMethodTypeProvider
for providing types for user export methods, can't benull
typeScope
-IScope
of available types, can't benull
scopeProvider
- actualIScopeProvider
, cannot benull
qualifiedNameConverter
- actualIQualifiedNameConverter
, cannot benull
allComputedState
- after calling of methoddoProcess()
contains all createdIExpressionTypeState
callers
- collection for fillingMethod
calling from thisBlock
, can't benull
properties
- actualTypeSystemProperties
, can't benull
ownerComputerService
- actualIBslOwnerComputerService
, can't benull
oldCommentFormat
-true
if need to use old Bsl documentation comment format,false
for new formatcommentProvider
- actualBslMultiLineCommentDocumentationProvider
, cannot benull
invTypesComputerExtension
- actualInvocationTypesComputerExtensionRegistry
, cannot benull
mode
- currentTypeSystemMode
, cannot benull
monitor
- actualCancelIndicator
, can't benull
-
-
Method Detail
-
getAllDependState
public static List<VariableTreeTypeState> getAllDependState(Expression expr, DynamicFeatureAccessComputer dynamicComputer, IBslOwnerComputerService ownerComputerService, InvocationTypesComputerExtensionRegistry invTypesComputerExtension, TypeSystemMode mode, Environments envs)
Gets allVariableTreeTypeState
from bslExpression
- Parameters:
expr
-Expression
for gettingVariableTreeTypeState
, cannot benull
dynamicComputer
- actualDynamicFeatureAccessComputer
, cannot benull
ownerComputerService
- actualIBslOwnerComputerService
, cannot benull
invTypesComputerExtension
- actualInvocationTypesComputerExtensionRegistry
, cannot benull
mode
- currentTypeSystemMode
, cannot benull
envs
- actualEnvironments
forexpr
, cannot benull
- Returns:
- all
VariableTreeTypeState
from bslExpression
, nevernull
-
doProcess
public void doProcess()
Go-round through part of Bsl module, and createIExpressionTypeState
-
doInternalProcess
protected void doInternalProcess(Statement statement)
Processing all statements in BSL module which can contains or create type state- Parameters:
statement
- processing statement, can't benull
-
doInternalProcess
protected void doInternalProcess(UnlabeledStatement statement)
Processing all statements in BSL module which can contains or create type state- Parameters:
statement
- processing statement, can't benull
-
-