Class MapSliceReference
java.lang.Object
org.eclipse.epsilon.eol.dap.variables.IdentifiableReference<Map<Object,Object>>
org.eclipse.epsilon.eol.dap.variables.maps.MapSliceReference
- All Implemented Interfaces:
IVariableReference
-
Field Summary
Fields inherited from class org.eclipse.epsilon.eol.dap.variables.IdentifiableReference
context, id, PREDEFINED_TYPES, target -
Constructor Summary
ConstructorsConstructorDescriptionMapSliceReference(IEolContext context, String name, Map<Object, Object> target, int from, int to) Creates a reference to a slice of a collection. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()getValue()getVariables(SuspendedState state) inthashCode()Methods inherited from class org.eclipse.epsilon.eol.dap.variables.IdentifiableReference
getContext, getId, getTarget, getTypeName, setId
-
Constructor Details
-
MapSliceReference
public MapSliceReference(IEolContext context, String name, Map<Object, Object> target, int from, int to) Creates a reference to a slice of a collection. The slice will include all the elements in the semi-closed range[from, to).- Parameters:
name- Name of the collection (the name of the slice will be automatically computed).t- Target collection.from- Starting 0-based index, included.to- Final 0-based index, excluded.
-
-
Method Details
-
getName
-
getValue
- Specified by:
getValuein interfaceIVariableReference- Overrides:
getValuein classIdentifiableReference<Map<Object,Object>>
-
getVariables
- Specified by:
getVariablesin interfaceIVariableReference- Overrides:
getVariablesin classIdentifiableReference<Map<Object,Object>>
-
hashCode
public int hashCode()- Overrides:
hashCodein classIdentifiableReference<Map<Object,Object>>
-
equals
- Overrides:
equalsin classIdentifiableReference<Map<Object,Object>>
-