Class BslIndexedVariablePartition
java.lang.Object
org.eclipse.core.runtime.PlatformObject
com._1c.g5.v8.dt.internal.debug.ui.variables.BslIndexedVariablePartition
- All Implemented Interfaces:
IBslVariable
,IRuntimeDebugElement
,IValueTypedModification
,org.eclipse.core.runtime.IAdaptable
,org.eclipse.debug.core.model.IDebugElement
,org.eclipse.debug.core.model.IValueModification
,org.eclipse.debug.core.model.IVariable
public class BslIndexedVariablePartition
extends org.eclipse.core.runtime.PlatformObject
implements IBslVariable
A variable containing a range of values from an
indexed value
.
This is actually non-existing possible property of BSL value, and can exist only as UI support for value representation.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a partition for an indexed value. -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
evaluate()
Evaluates this BSL variable through connected 1C:Enterprise Runtime debug server.Returns 1C:Enterprise Runtime debug target this element is contained in.org.eclipse.debug.core.ILaunch
getName()
Returns the BSL variable name.Returns the parent 1C:Enterprise Runtime stack frame, that holds for this variable.getUuid()
Returns root expression evaluation UUID for this variable.getValue()
Returns the BSL value of this variable.int
hashCode()
boolean
boolean
Returns whether the actual value of this BSL variable is already fully evaluated.Computes and returns the evaluation chain to evaluate for this variable update.<T> void
setTypedValue
(T value) Attempts to set the value and the type of this variable with the given type modification.void
void
setValue
(org.eclipse.debug.core.model.IValue value) Sets the value of this variable to the given value.boolean
Returns aString
watch expression which evaluation result is equal to this BSL variable, that can be evaluated in 1C:Enterprise Runtime debug server.<T> boolean
verifyTypedValue
(T value) Returns whether the given type modification is valid to be used in setting a new value and type for this variable.boolean
verifyValue
(String expression) boolean
verifyValue
(org.eclipse.debug.core.model.IValue value) Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
-
Constructor Details
-
BslIndexedVariablePartition
Creates a partition for an indexed value.- Parameters:
value
- the indexed value, cannot benull
-
-
Method Details
-
getModelIdentifier
- Specified by:
getModelIdentifier
in interfaceorg.eclipse.debug.core.model.IDebugElement
-
getDebugTarget
Description copied from interface:IRuntimeDebugElement
Returns 1C:Enterprise Runtime debug target this element is contained in.- Specified by:
getDebugTarget
in interfaceorg.eclipse.debug.core.model.IDebugElement
- Specified by:
getDebugTarget
in interfaceIRuntimeDebugElement
- Returns:
- 1C:Enterprise Runtime debug target this element is contained in, never
null
-
getLaunch
public org.eclipse.debug.core.ILaunch getLaunch()- Specified by:
getLaunch
in interfaceorg.eclipse.debug.core.model.IDebugElement
-
setValue
- Specified by:
setValue
in interfaceorg.eclipse.debug.core.model.IValueModification
- Throws:
org.eclipse.debug.core.DebugException
-
setValue
public void setValue(org.eclipse.debug.core.model.IValue value) Description copied from interface:IBslVariable
Sets the value of this variable to the given value.- Specified by:
setValue
in interfaceIBslVariable
- Specified by:
setValue
in interfaceorg.eclipse.debug.core.model.IValueModification
- Parameters:
value
- a new value, cannot benull
-
setTypedValue
public <T> void setTypedValue(T value) throws org.eclipse.debug.core.DebugException Description copied from interface:IValueTypedModification
Attempts to set the value and the type of this variable with the given type modification.- Specified by:
setTypedValue
in interfaceIValueTypedModification
- Parameters:
value
- the new value, cannot benull
- Throws:
org.eclipse.debug.core.DebugException
- if modification fails
-
supportsValueModification
public boolean supportsValueModification()- Specified by:
supportsValueModification
in interfaceorg.eclipse.debug.core.model.IValueModification
-
verifyValue
- Specified by:
verifyValue
in interfaceorg.eclipse.debug.core.model.IValueModification
- Throws:
org.eclipse.debug.core.DebugException
-
verifyValue
public boolean verifyValue(org.eclipse.debug.core.model.IValue value) throws org.eclipse.debug.core.DebugException - Specified by:
verifyValue
in interfaceorg.eclipse.debug.core.model.IValueModification
- Throws:
org.eclipse.debug.core.DebugException
-
verifyTypedValue
public <T> boolean verifyTypedValue(T value) throws org.eclipse.debug.core.DebugException Description copied from interface:IValueTypedModification
Returns whether the given type modification is valid to be used in setting a new value and type for this variable.- Specified by:
verifyTypedValue
in interfaceIValueTypedModification
- Parameters:
value
- the new value, cannot benull
- Throws:
org.eclipse.debug.core.DebugException
- if verification fails
-
getValue
Description copied from interface:IBslVariable
Returns the BSL value of this variable.- Specified by:
getValue
in interfaceIBslVariable
- Specified by:
getValue
in interfaceorg.eclipse.debug.core.model.IVariable
- Returns:
- the variable BSL value, never
null
-
getName
Description copied from interface:IBslVariable
Returns the BSL variable name.- Specified by:
getName
in interfaceIBslVariable
- Specified by:
getName
in interfaceorg.eclipse.debug.core.model.IVariable
- Returns:
- the BSL variable name, cannot be
null
-
getReferenceTypeName
- Specified by:
getReferenceTypeName
in interfaceorg.eclipse.debug.core.model.IVariable
- Throws:
org.eclipse.debug.core.DebugException
-
hasValueChanged
public boolean hasValueChanged() throws org.eclipse.debug.core.DebugException- Specified by:
hasValueChanged
in interfaceorg.eclipse.debug.core.model.IVariable
- Throws:
org.eclipse.debug.core.DebugException
-
getUuid
Description copied from interface:IBslVariable
Returns root expression evaluation UUID for this variable.1C:Enterprise Runtime stores entire expression evaluation and client can access to child value nodes by the same UUID.
- Specified by:
getUuid
in interfaceIBslVariable
- Returns:
- the evaluation UUID of this variable, never
null
-
getStackFrame
Description copied from interface:IBslVariable
Returns the parent 1C:Enterprise Runtime stack frame, that holds for this variable.- Specified by:
getStackFrame
in interfaceIBslVariable
- Returns:
- the parent stack frame for this variable, never
null
-
toWatchExpression
Description copied from interface:IBslVariable
Returns aString
watch expression which evaluation result is equal to this BSL variable, that can be evaluated in 1C:Enterprise Runtime debug server.Can return
null
if this variable cannot be evaluated as string expression.- Specified by:
toWatchExpression
in interfaceIBslVariable
- Returns:
- watch expression, equals to this BSL variable, that can be evaluated in 1C:Enterprise Runtime debug
server or
null
if this variable cannot be evaluated as string expression
-
evaluate
public void evaluate() throws org.eclipse.debug.core.DebugExceptionDescription copied from interface:IBslVariable
Evaluates this BSL variable through connected 1C:Enterprise Runtime debug server. TheIBslVariable
fires a debug change event when the evaluation is complete.Note that implementation is intended to be asynchronous to avoid blocking the calling thread.
- Specified by:
evaluate
in interfaceIBslVariable
- Throws:
org.eclipse.debug.core.DebugException
- if evaluation fails
-
isEvaluated
public boolean isEvaluated()Description copied from interface:IBslVariable
Returns whether the actual value of this BSL variable is already fully evaluated.- Specified by:
isEvaluated
in interfaceIBslVariable
- Returns:
- whether the actual value of this BSL value is already fully evaluated
-
reevaluate
Description copied from interface:IBslVariable
Computes and returns the evaluation chain to evaluate for this variable update. Evaluation chain includes already evaluated children evaluation requests.Note, that an evaluation chain is a description of evaluation requests, and it needs to be exetuted by the
IEvaluationEngine
for actual value update.- Specified by:
reevaluate
in interfaceIBslVariable
- Returns:
- the evaluation chain to evaluate for this variable update, never
null
- See Also:
-
hashCode
public int hashCode() -
equals
-