java.lang.Object
org.kink_lang.kink.internal.ovis.OwnVarIndexes
Mapping from syms to indexes of own vars.
-
Method Summary
Modifier and TypeMethodDescriptionstatic OwnVarIndexesBuilds an empty set.booleanReturns whether it has the sym of a preloaded var.intgetIndex(int symHandle) Returns the index of the sym handle.Returns the set of sym handles.booleanisEmpty()Whether this does not have any sym handle.with(int symHandle) Returns the set adding symHandle.
-
Method Details
-
buildEmpty
Builds an empty set.- Returns:
- an empty set.
-
with
Returns the set adding symHandle.- Parameters:
symHandle- sym handle added to the ovis.- Returns:
- the set adding symHandle.
-
getIndex
public int getIndex(int symHandle) Returns the index of the sym handle.- Parameters:
symHandle- the sym handle.- Returns:
- the index of the sym handle, or -1 if absent.
-
isEmpty
public boolean isEmpty()Whether this does not have any sym handle.- Returns:
- whether this does not have any sym handle.
-
getSymHandles
Returns the set of sym handles.- Returns:
- the set of sym handles.
-
containsPreloadedVar
public boolean containsPreloadedVar()Returns whether it has the sym of a preloaded var.- Returns:
- whether it has the sym of a preloaded var.
-