Class PromiseVariableTreeTypeStateWithSubStates
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.model.typesytem.VariableTypeState
-
- com._1c.g5.v8.dt.bsl.model.typesytem.VariableTreeTypeState
-
- com._1c.g5.v8.dt.bsl.model.typesytem.ThreadSafeVariableTreeTypeState
-
- com._1c.g5.v8.dt.bsl.model.typesytem.VariableTreeTypeStateWithSubStates
-
- com._1c.g5.v8.dt.bsl.model.typesytem.PromiseVariableTreeTypeStateWithSubStates
-
- All Implemented Interfaces:
IExpressionTypeState
,Comparable<VariableTypeState>
public class PromiseVariableTreeTypeStateWithSubStates extends VariableTreeTypeStateWithSubStates
SpecialVariableTreeTypeStateWithSubStates
for async methods. All sub state will be wrapped toPromiseVariableTreeTypeState
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com._1c.g5.v8.dt.bsl.model.typesytem.VariableTreeTypeState
VariableTreeTypeState.CurrentNumTypesNumVisiting
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.bsl.model.typesytem.VariableTreeTypeStateWithSubStates
subStates
-
Fields inherited from class com._1c.g5.v8.dt.bsl.model.typesytem.VariableTreeTypeState
dependStates, expressions
-
Fields inherited from class com._1c.g5.v8.dt.bsl.model.typesytem.VariableTypeState
blockNode, children, typesByDependedState, typesState
-
-
Constructor Summary
Constructors Constructor Description PromiseVariableTreeTypeStateWithSubStates(Variable variable, Environments envs, int offset, org.eclipse.xtext.nodemodel.INode blockNode)
Creates state
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VariableTreeTypeState
getConcreteState(Environments envs)
Gets sub state for this state corresponding to theenvs
-
Methods inherited from class com._1c.g5.v8.dt.bsl.model.typesytem.VariableTreeTypeStateWithSubStates
getAllSubStates, getSubStates, isEmptyState, linkedState
-
Methods inherited from class com._1c.g5.v8.dt.bsl.model.typesytem.ThreadSafeVariableTreeTypeState
addDependState, addExpression, addType, addTypes, addTypes, copyWithNewOffset, getDependStates, getExpressions, getTypes
-
Methods inherited from class com._1c.g5.v8.dt.bsl.model.typesytem.VariableTreeTypeState
addAllowedType, addAllowedTypes, addSkipType, addSkipTypes, getPrevChildrenNumTypes, hasNewTypes, isDependOnCollection, isExpandTypeContextDef, isServerCall, setDependOnCollection, setExpandTypeContextDef, setHasNewTypes, setServerCall
-
Methods inherited from class com._1c.g5.v8.dt.bsl.model.typesytem.VariableTypeState
addChildState, addExpressionRelatedTypes, compareTo, getBlockOffset, getChildState, getEnvironments, getOffset, getParentState, getSemanticObject, getTypesSize, getVariable, hasTypes, setParentState
-
-
-
-
Constructor Detail
-
PromiseVariableTreeTypeStateWithSubStates
public PromiseVariableTreeTypeStateWithSubStates(Variable variable, Environments envs, int offset, org.eclipse.xtext.nodemodel.INode blockNode)
Creates state- Parameters:
variable
-Variable
in BSL associated with this stateenvs
-Environments
for this state, can't benull
offset
- position in document, where this state was createdblockNode
-INode
corresponding to the containmentBlock
in Built-In Language, can't benull
-
-
Method Detail
-
getConcreteState
public VariableTreeTypeState getConcreteState(Environments envs)
Description copied from class:VariableTreeTypeStateWithSubStates
Gets sub state for this state corresponding to theenvs
- Overrides:
getConcreteState
in classVariableTreeTypeStateWithSubStates
- Parameters:
envs
-Environments
for getting sub states, each sub state environments should be equals toenvs
.- Returns:
- sub state for this state corresponding to the
envs
, if there is no corresponding su states it will be created and parent state should be depend on creating, nevernull
-
-